aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-02 21:50:28 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:28 +0100
commit3a81030c744fae5d31f21d728a6b2f616637e550 (patch)
treed4e851defb77686dc3b166da564492c5c9441930
parentd03e9fda2fc5c9d5f97e396c65190ab750863e36 (diff)
downloadlibnitrokey-3a81030c744fae5d31f21d728a6b2f616637e550.tar.gz
libnitrokey-3a81030c744fae5d31f21d728a6b2f616637e550.tar.bz2
Set default debug level to DEBUG
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NitrokeyManager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index f0099da..606c4fb 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -16,7 +16,7 @@ namespace nitrokey{
nitrokey::log::Log::instance()(std::string("strcpyT sizes dest src ")
+std::to_string(s_dest)+ " "
+std::to_string(strlen(src))+ " "
- ,nitrokey::log::Loglevel::DEBUG);
+ ,nitrokey::log::Loglevel::DEBUG_L2);
if (strlen(src) > s_dest){
throw TooLongStringException(strlen(src), s_dest, src);
}
@@ -94,7 +94,7 @@ namespace nitrokey{
void NitrokeyManager::set_debug(bool state) {
if (state){
- Log::instance().set_loglevel(Loglevel::DEBUG_L2);
+ Log::instance().set_loglevel(Loglevel::DEBUG);
} else {
Log::instance().set_loglevel(Loglevel::ERROR);
}