Fixed debug logging
This commit is contained in:
parent
a3ddaa69d3
commit
b8f6193f7b
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@ DEFAULT_LOGFILE = settings_file_path("openflexure_microscope.log")
|
||||||
if (__name__ == "__main__") or (not is_gunicorn):
|
if (__name__ == "__main__") or (not is_gunicorn):
|
||||||
# If imported, but not by gunicorn
|
# If imported, but not by gunicorn
|
||||||
print("Letting sys handle logs")
|
print("Letting sys handle logs")
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logger = logging.getLogger()
|
||||||
|
logger.setLevel(logging.INFO)
|
||||||
else:
|
else:
|
||||||
# Direct standard Python logging to file and console
|
# Direct standard Python logging to file and console
|
||||||
root = logging.getLogger()
|
root = logging.getLogger()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue