diff --git a/management/wsgi.py b/management/wsgi.py index 86cf3af4..8c6736f4 100644 --- a/management/wsgi.py +++ b/management/wsgi.py @@ -1,7 +1,11 @@ from daemon import app -import auth, utils +import auth, utils, logging app.logger.addHandler(utils.create_syslog_handler()) +logging_level = logging.DEBUG +logging.basicConfig(level=logging_level, format='MiaB %(levelname)s:%(module)s.%(funcName)s %(message)s') +logging.info('Logging level set to %s', logging.getLevelName(logging_level)) + if __name__ == "__main__": app.run(port=10222) \ No newline at end of file