mailinabox/management/wsgi.py

11 lines
378 B
Python
Raw Normal View History

from daemon import app
2022-10-15 05:59:25 +00:00
import auth, utils, logging
app.logger.addHandler(utils.create_syslog_handler())
2022-10-15 05:59:25 +00:00
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)