update master logging

This commit is contained in:
2025-06-06 14:28:47 +02:00
parent c5c1f35c08
commit 2db476ce09
2 changed files with 2 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ from flask import Blueprint, Flask, render_template
from flask_login import login_required
from models import SiteSettings
import os
import logging
def init_app(app: Flask):
# Create blueprints
@@ -32,6 +33,7 @@ def init_app(app: Flask):
# Add MASTER environment variable to all templates
@app.context_processor
def inject_master():
logging.warning("DEBUG: MASTER = %s", os.environ.get('MASTER'))
return dict(is_master=os.environ.get('MASTER', 'false').lower() == 'true')
# Register blueprints