2022-09-17 14:41:35 +00:00
|
|
|
from daemon import app
|
2022-10-15 05:59:25 +00:00
|
|
|
import auth, utils, logging
|
2022-09-17 14:41:35 +00:00
|
|
|
|
|
|
|
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))
|
|
|
|
|
2022-09-17 14:41:35 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(port=10222)
|