Skip to content

Commit

Permalink
solve bug in the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
suparious committed Jun 15, 2024
1 parent c0057e2 commit 9f95d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='srt-core',
version='0.1.14',
version='0.1.15',
packages=find_packages(include=['srt_core', 'srt_core.*']),
install_requires=[
'pyyaml',
Expand Down
4 changes: 2 additions & 2 deletions srt_core/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def load_config(self):
except yaml.YAMLError as e:
raise ValueError(f"Error reading YAML file: {e}")

self.debug = self.config.get("debug", False)
self.debugging = self.config.get("debugging", False)
self.persona_name = os.environ.get("PERSONA", "Default")

def setup_logging(self):
"""Setup logging based on the configuration."""
log_level = logging.DEBUG if self.debug else logging.INFO
log_level = logging.DEBUG if self.debugging else logging.INFO
logs_path = self.config.get("logs_path", "./logs")

if not os.path.exists(logs_path):
Expand Down

0 comments on commit 9f95d3a

Please sign in to comment.