use logger.warning

pull/994/head
Piero Toffanin 2021-06-08 11:52:40 -04:00
rodzic 25e72958ed
commit c785936075
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -32,7 +32,7 @@ def init_plugins():
with open(os.path.join(get_plugins_persistent_path(), "__init__.py"), 'w') as f:
f.write("\n")
except Exception as e:
print("Cannot create __init__.py: %s" % str(e))
logger.warning("Cannot create __init__.py: %s" % str(e))
# Add additional python path to discover plugins
sys.path.append(settings.MEDIA_ROOT)