From 3a6d2243481cdd531063ac977e023a64209565e0 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 10 Jun 2021 09:21:20 +0200 Subject: [PATCH] fix: Log filter in wrong direction --- CHANGELOG.md | 3 +++ lib/src/utils/logs.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 130b20c7..b668fe74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.3.3 +- fix: Log filter in wrong direction + ## 0.3.2 - fix: Logs should only printed if loglevel is high enough diff --git a/lib/src/utils/logs.dart b/lib/src/utils/logs.dart index 8fe7fca6..298e1985 100644 --- a/lib/src/utils/logs.dart +++ b/lib/src/utils/logs.dart @@ -45,7 +45,7 @@ class Logs { void addLogEvent(LogEvent logEvent) { outputEvents.add(logEvent); - if (logEvent.level.index >= level.index) { + if (logEvent.level.index <= level.index) { logEvent.printOut(); } } diff --git a/pubspec.yaml b/pubspec.yaml index 6e20d760..828a9cbf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix_api_lite description: Dead simple data model for the matrix.org client-server API. -version: 0.3.2 +version: 0.3.3 homepage: https://famedly.com environment: