diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-21 14:56:07 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:49 +0100 |
commit | 29fc4839b7aaf76c3587cf0d268546fd1d1390c4 (patch) | |
tree | e66eec3090ae3235e740a6fc9690fe913d8a49e8 /include/log.h | |
parent | c13c7fda5b9f69cd46ba40ac5e6cf1cc4bc7e71d (diff) | |
download | libnitrokey-29fc4839b7aaf76c3587cf0d268546fd1d1390c4.tar.gz libnitrokey-29fc4839b7aaf76c3587cf0d268546fd1d1390c4.tar.bz2 |
Build debug-log-free library for increased security
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index 695884b..a3e8281 100644 --- a/include/log.h +++ b/include/log.h @@ -53,4 +53,11 @@ class Log { } } + +#ifdef NO_LOG +#define LOG(string, level) while(false){} +#else +#define LOG(string, level) nitrokey::log::Log::instance()((string), (level)) +#endif + #endif |