From bc371a7fd4491f90b07e0f265d803f177bd896dd Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@z.dgerhardt.net> Date: Sun, 7 May 2017 21:41:36 +0200 Subject: [PATCH] Use correct log level if it is provided Log level for DB logging was overriden by the fallbacki value in some cases. --- src/main/java/de/thm/arsnova/dao/CouchDBDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java index 3a4f89847..febfee4d7 100644 --- a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java +++ b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java @@ -161,7 +161,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware for (int i = 0; i < rawPayload.length; i += 2) { payload.put((String) rawPayload[i], rawPayload[i + 1]); } - log(event, payload, LogEntry.LogLevel.INFO); + log(event, payload, level); } @Override -- GitLab