Skip to content

Commit

Permalink
Logging update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Jan 3, 2025
1 parent c44cbcd commit 546d316
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions webui/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GeneratorUI:

def __init__(self):
self.download_path = None
self.logger = mfs.Logger(level="DEBUG", to_file=False)
self.logger = mfs.Logger(level="INFO", to_file=False)

self.public = config.is_public()
self.logger.debug("The application launched on a public server: %s", self.public)
Expand Down Expand Up @@ -332,12 +332,12 @@ def add_left_widgets(self) -> None:
st.title("Expert Settings")
st.write(Messages.EXPERT_SETTINGS_INFO)

# if not self.public:
# enable_debug = st.checkbox("Enable debug logs", key="debug_logs")
# if enable_debug:
# self.logger = mfs.Logger(level="DEBUG", to_file=False)
# else:
# self.logger = mfs.Logger(level="INFO", to_file=False)
if not self.public:
enable_debug = st.checkbox("Enable debug logs", key="debug_logs")
if enable_debug:
self.logger = mfs.Logger(level="DEBUG", to_file=False)
else:
self.logger = mfs.Logger(level="INFO", to_file=False)

self.custom_osm_enabled = st.checkbox(
"Upload custom OSM file",
Expand Down

0 comments on commit 546d316

Please sign in to comment.