Skip to content

Commit

Permalink
Only apply user specified log level to mantidimaging
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc authored and JackEAllen committed Apr 18, 2023
1 parent 5a2bdde commit d455a75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/release_notes/next.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ Developer Changes
- #1643 : Deprecations in GitHub actions
- #1726, #1728 : Use FilenameGroup for Load Dataset
- #1754 : Migrate Centos7 and Ubuntu18 Docker images from DockerHub to GitHub Container Registry
- #1757 : CLI log level only on to mantidimaging
7 changes: 2 additions & 5 deletions mantidimaging/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ def initialise_logging(default_level=logging.DEBUG):
console_handler.setFormatter(_log_formatter)
root_logger.addHandler(console_handler)

# Default log level
root_logger.setLevel(default_level)

# Don't ever print all the debug logging from Qt
logging.getLogger('PyQt5').setLevel(logging.INFO)
# Default log level for mantidimaging only
logging.getLogger('mantidimaging').setLevel(default_level)


def check_data_stack(data, expected_dims=3, expected_class=ImageStack):
Expand Down

0 comments on commit d455a75

Please sign in to comment.