Skip to content

Commit

Permalink
Merge pull request #8003 from 4teamwork/fix-bundle-import-logging
Browse files Browse the repository at this point in the history
Fix migration.log handler
  • Loading branch information
buchi authored Jul 29, 2024
2 parents 39a5fee + c21e457 commit bdb7bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/GH-8003.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix migration.log handler which was broken in releae 2024.6.0. [buchi]
2 changes: 1 addition & 1 deletion opengever/bundle/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def setup_logging():

# Also write logs to a dedicated migration log.
log_dir = PathFinder().var_log
file_handler = logging.FileHandler(log_dir, 'migration.log')
file_handler = logging.FileHandler(os.path.join(log_dir, 'migration.log'))
file_handler.setFormatter(stream_handler.formatter)
file_handler.setLevel(logging.INFO)
logging.root.addHandler(file_handler)

0 comments on commit bdb7bca

Please sign in to comment.