#!/usr/bin/env python
from myapi import get_module_logger
from myapi import controller
from myapi import app


if __name__ == "__main__":
    # Entrypoint when testing locally. UWSGI DOES NOT ENTER HERE
    logger = get_module_logger("main")
    logger.debug("Starting locally in development mode")
    app.run(host='0.0.0.0', debug=True, port=10000)
else:
    # Entrypoint in UWSGI
    logger = get_module_logger("main", True)
    controller.logger = get_module_logger("controller", True)
    logger.debug("Starting Application in UWSGI")

d5cf6b6ecc5fecec96bed224cc737c18725466d7
<mask token>

<mask token>
if __name__ == '__main__':
    logger = get_module_logger('main')
    logger.debug('Starting locally in development mode')
    app.run(host='0.0.0.0', debug=True, port=10000)
else:
    logger = get_module_logger('main', True)
    controller.logger = get_module_logger('controller', True)
    logger.debug('Starting Application in UWSGI')

from myapi import get_module_logger
from myapi import controller
from myapi import app
if __name__ == '__main__':
    logger = get_module_logger('main')
    logger.debug('Starting locally in development mode')
    app.run(host='0.0.0.0', debug=True, port=10000)
else:
    logger = get_module_logger('main', True)
    controller.logger = get_module_logger('controller', True)
    logger.debug('Starting Application in UWSGI')

#!/usr/bin/env python
from myapi import get_module_logger
from myapi import controller
from myapi import app


if __name__ == "__main__":
    # Entrypoint when testing locally. UWSGI DOES NOT ENTER HERE
    logger = get_module_logger("main")
    logger.debug("Starting locally in development mode")
    app.run(host='0.0.0.0', debug=True, port=10000)
else:
    # Entrypoint in UWSGI
    logger = get_module_logger("main", True)
    controller.logger = get_module_logger("controller", True)
    logger.debug("Starting Application in UWSGI")
