From 37023c0d44addf18932048d613a90512386f1406 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Tue, 11 Feb 2025 16:42:01 -0800 Subject: [PATCH] Config.Config: use_enum_values = False Save enum fields as the enum object rather than the value. --- reflex/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reflex/config.py b/reflex/config.py index fcf1cc9bc..21614b9b1 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -628,6 +628,7 @@ class Config(Base): """Pydantic config for the config.""" validate_assignment = True + use_enum_values = False # The name of the app (should match the name of the app directory). app_name: str @@ -758,6 +759,9 @@ class Config(Base): self._non_default_attributes.update(kwargs) self._replace_defaults(**kwargs) + # Set the log level for this process + console.set_log_level(self.loglevel) + if ( self.state_manager_mode == constants.StateManagerMode.REDIS and not self.redis_url