aboutsummaryrefslogtreecommitdiff
path: root/src/account.cpp
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-13 11:53:33 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-16 11:05:57 +0100
commitb3db0e6ee14315d20ca91eff91e348e18dd119e6 (patch)
treeafe3cea009a51309f034ddb0ca14a069262f71c4 /src/account.cpp
parent48cb5f925d3bf21c51818dbe46c864a6975ccc75 (diff)
translate logging.cpp to C
Diffstat (limited to 'src/account.cpp')
-rw-r--r--src/account.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/account.cpp b/src/account.cpp
index 4fca953..d34110a 100644
--- a/src/account.cpp
+++ b/src/account.cpp
@@ -14,7 +14,7 @@
*/
#include "olm/account.hh"
#include "olm/base64.hh"
-#include "olm/logging.hh"
+#include "olm/logging.h"
#include "olm/pickle.hh"
#include "olm/memory.hh"
@@ -45,11 +45,11 @@ std::size_t olm::Account::remove_key(
if (olm::array_equal(i->key.public_key, public_key.public_key)) {
std::uint32_t id = i->id;
one_time_keys.erase(i);
- olm::logf(olm::LOG_INFO, LOG_CATEGORY, "removed key id %i", id);
+ olm_logf(OLM_LOG_INFO, LOG_CATEGORY, "removed key id %i", id);
return id;
}
}
- olm::logf(olm::LOG_WARNING, LOG_CATEGORY, "Couldn't find key to remove");
+ olm_logf(OLM_LOG_WARNING, LOG_CATEGORY, "Couldn't find key to remove");
return std::size_t(-1);
}
@@ -69,7 +69,7 @@ std::size_t olm::Account::new_account(
random += KEY_LENGTH;
olm::curve25519_generate_key(random, identity_keys.curve25519_key);
- olm::logf(olm::LOG_DEBUG, LOG_CATEGORY, "Created new account");
+ olm_logf(OLM_LOG_DEBUG, LOG_CATEGORY, "Created new account");
return 0;
}