diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de09b686..c5647502f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### Fixed +- Fixed the duplication of log messages in Jupyter when `set_logging_file` is used. ## [2.5.0rc2] - 2023-10-30 diff --git a/tidy3d/log.py b/tidy3d/log.py index f38f37912..c98e0c10f 100644 --- a/tidy3d/log.py +++ b/tidy3d/log.py @@ -384,7 +384,7 @@ def set_logging_file( log.error(f"File {fname} could not be opened") return - log.handlers["file"] = LogHandler(Console(file=file), level) + log.handlers["file"] = LogHandler(Console(file=file, force_jupyter=False), level) # Initialize Tidy3d's logger