matrix-webhook/matrix_webhook/__main__.py

16 lines
334 B
Python
Raw Normal View History

2021-08-08 08:41:37 +02:00
"""Matrix Webhook module entrypoint."""
2021-07-14 17:12:55 +02:00
import logging
2020-03-11 10:06:53 +01:00
2021-08-08 08:41:37 +02:00
from . import app, conf
2020-03-11 10:06:53 +01:00
2022-05-06 12:43:33 +02:00
def main():
2022-08-01 23:59:20 +02:00
"""Start everything."""
2021-07-14 20:00:52 +02:00
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
2021-07-18 16:52:39 +02:00
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
2021-08-08 08:41:37 +02:00
app.run()
2022-05-06 12:43:33 +02:00
if __name__ == "__main__":
main()