#include "cryptsetup-engine.h"
#include "../../file-footer.h"
+#include "../../logger.h"
#include <cctype>
#include <algorithm>
#include <libcryptsetup.h>
#include <klay/exception.h>
-#include <klay/audit/logger.h>
namespace ode {
switch (level)
{
case CRYPT_LOG_ERROR:
- ERROR("[libcryptsetup] " + msgStr);
+ ERROR(SINK, "[libcryptsetup] " + msgStr);
break;
case CRYPT_LOG_VERBOSE:
- INFO("[libcryptsetup] " + msgStr);
+ INFO(SINK, "[libcryptsetup] " + msgStr);
break;
case CRYPT_LOG_DEBUG:
case CRYPT_LOG_NORMAL:
- DEBUG("[libcryptsetup] " + msgStr);
+ DEBUG(SINK, "[libcryptsetup] " + msgStr);
break;
default:
- ERROR("[libcryptsetup] Unsupported log level. Msg: " + msgStr);
+ ERROR(SINK, "[libcryptsetup] Unsupported log level. Msg: " + msgStr);
}
}
#endif
~Device()
{
if (0 != crypt_memory_lock(device, 0))
- ERROR("Failed to unlock memory");
+ ERROR(SINK, "Failed to unlock memory");
crypt_free(device);
}