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