update master logging
This commit is contained in:
@@ -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
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user