INNER CODE UNIT · Python

close_log_handlers

giuseppe99barchetta/SuggestArr · api_service/app.py:348

def close_log_handlers():
    for handler in logging.root.handlers[:]:
        handler.close()
        logging.root.removeHandler(handler)
atexit.register(close_log_handlers)

if __name__ == '__main__':
    port = int(os.environ.get('SUGGESTARR_PORT', 5000))
    app.run(host='0.0.0.0', port=port)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…