Set log level via env var

This commit is contained in:
MMaker 2025-03-03 13:16:34 -05:00
parent b0b552ee82
commit d770c7df41
Signed by: mmaker
GPG Key ID: CCE79B8FEDA40FB2

1
app.py
View File

@ -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')