From d770c7df41f54c2cdcf9c7c6ce4c03e0a420437c Mon Sep 17 00:00:00 2001 From: MMaker Date: Mon, 3 Mar 2025 13:16:34 -0500 Subject: [PATCH] Set log level via env var --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 0b052dd..95fad21 100644 --- a/app.py +++ b/app.py @@ -26,6 +26,7 @@ logging.basicConfig( ) logging.getLogger("urllib3.connectionpool").setLevel(logging.ERROR) logger = logging.getLogger(__name__) +logger.setLevel(os.environ.get('NICONICOGAY_LOG', 'INFO').upper()) app = Flask(__name__) HOST = os.environ.get('NICONICOGAY_HOST', 'https://nicovideo.gay')