From 4a74fd929745173862dfeae7a42837937ee68643 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 28 Jun 2016 14:26:07 +0100 Subject: [PATCH] Revert "Remove vestiges of logging" Re-enable the logging stuff on the logging_enabled branch. This reverts commit 2a09ccbd63cd06a2f5ba3a9e21d6d5a11f3c2980. --- include/olm/olm.hh | 7 +++++++ javascript/olm_post.js | 2 ++ 2 files changed, 9 insertions(+) diff --git a/include/olm/olm.hh b/include/olm/olm.hh index 51d5c04..ffecb10 100644 --- a/include/olm/olm.hh +++ b/include/olm/olm.hh @@ -415,6 +415,13 @@ size_t olm_ed25519_verify( void * signature, size_t signature_length ); +/** + * Set the log level. By default, 1, which logs only FATAL messages. + */ +void olm_set_log_level( + unsigned int level +); + #ifdef __cplusplus } #endif diff --git a/javascript/olm_post.js b/javascript/olm_post.js index 5173f7f..36e7645 100644 --- a/javascript/olm_post.js +++ b/javascript/olm_post.js @@ -382,4 +382,6 @@ Utility.prototype['ed25519_verify'] = restore_stack(function( olm_exports["Account"] = Account; olm_exports["Session"] = Session; olm_exports["Utility"] = Utility; + +olm_exports['set_log_level'] = Module['_olm_set_log_level']; }();