Skip to content

Commit

Permalink
Fix setting a log level of .none.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Aug 22, 2022
1 parent 175d5a0 commit 62ec1ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions MatrixSDK/Utils/MXLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private var logger: SwiftyBeaver.Type = {
sizeLimit: configuration.logFilesSizeLimit)

guard configuration.logLevel != .none else {
logger.removeAllDestinations()
return
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/sdk-1550.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MXLog: Ensure MXLogLevel.none works if it is set after another log level has already been configured.

0 comments on commit 62ec1ec

Please sign in to comment.