fix: Logs should only printed if loglevel is high enough

This commit is contained in:
Christian Pauly 2021-06-09 10:11:56 +02:00
parent 73a2f38698
commit 9b3768300e
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 0.3.2
- fix: Logs should only printed if loglevel is high enough
## 0.3.1
- change: Remove logger package

View File

@ -44,9 +44,9 @@ class Logs {
Logs._internal();
void addLogEvent(LogEvent logEvent) {
logEvent.printOut();
if (logEvent.level.index >= level.index) {
outputEvents.add(logEvent);
if (logEvent.level.index >= level.index) {
logEvent.printOut();
}
}

View File

@ -1,6 +1,6 @@
name: matrix_api_lite
description: Dead simple data model for the matrix.org client-server API.
version: 0.3.1
version: 0.3.2
homepage: https://famedly.com
environment: