manage.py 422 Bytes
Newer Older
1
#!/usr/bin/env python3
Luna's avatar
Luna committed
2
# elixire: Image Host software
Luna's avatar
Luna committed
3
# Copyright 2018-2019, elixi.re Team and the elixire contributors
Luna's avatar
Luna committed
4 5
# SPDX-License-Identifier: AGPL-3.0-only

Luna's avatar
Luna committed
6
import logging
Luna's avatar
Luna committed
7
import sys
Luna's avatar
Luna committed
8

9
from manage.main import main
Luna's avatar
Luna committed
10

11 12
import config

13 14 15
def _setup_logging():
    level = getattr(config, 'LOGGING_LEVEL', 'INFO')
    logging.basicConfig(level=level)
16 17

if __name__ == '__main__':
18
    _setup_logging()
Luna's avatar
Luna committed
19
    sys.exit(main(config))