diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-29 12:44:33 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-29 12:49:15 +0200 |
commit | e6608fc4a3bd5adb27bcebe3e87c9fc3de789375 (patch) | |
tree | 847462f25c9ee452474c4aee178e756ebf190c51 /NitrokeyManager.cc | |
parent | c196b45789377dc2cb76a203853695928872dbb4 (diff) | |
download | libnitrokey-e6608fc4a3bd5adb27bcebe3e87c9fc3de789375.tar.gz libnitrokey-e6608fc4a3bd5adb27bcebe3e87c9fc3de789375.tar.bz2 |
Allow to directly choose loglevel
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index ec74f18..eeda537 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -157,6 +157,10 @@ namespace nitrokey{ return false; } + void NitrokeyManager::set_loglevel(Loglevel loglevel) { + Log::instance().set_loglevel(loglevel); + } + void NitrokeyManager::set_debug(bool state) { if (state){ Log::instance().set_loglevel(Loglevel::DEBUG); @@ -845,4 +849,5 @@ namespace nitrokey{ return data.data().SD_Card_Size_u8; } + } |