Skip to content

Commit

Permalink
Missing log directory when disabled save logs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus committed Jul 11, 2024
1 parent 8938645 commit f9ef647
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/snowflake/cli/app/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ def create_initial_loggers():
config = InitialLoggingConfig()
try:
file_logs_config = FileLogsConfig(debug=False)
config.handlers["file"]["filename"] = file_logs_config.filename
_configurate_logging(config)
if file_logs_config.save_logs:
config.handlers["file"]["filename"] = file_logs_config.filename
_configurate_logging(config)
except ConfigSourceError:
pass

Expand Down

0 comments on commit f9ef647

Please sign in to comment.