diff --git a/MatrixSDK/Utils/MXLog.swift b/MatrixSDK/Utils/MXLog.swift index 1c53f3c477..3a7755bfb4 100644 --- a/MatrixSDK/Utils/MXLog.swift +++ b/MatrixSDK/Utils/MXLog.swift @@ -155,6 +155,7 @@ private var logger: SwiftyBeaver.Type = { sizeLimit: configuration.logFilesSizeLimit) guard configuration.logLevel != .none else { + logger.removeAllDestinations() return } diff --git a/changelog.d/sdk-1550.build b/changelog.d/sdk-1550.build new file mode 100644 index 0000000000..b99823f7d3 --- /dev/null +++ b/changelog.d/sdk-1550.build @@ -0,0 +1 @@ +MXLog: Ensure MXLogLevel.none works if it is set after another log level has already been configured.