Revert "Remove vestiges of logging"

Re-enable the logging stuff on the logging_enabled branch.

This reverts commit 2a09ccbd63.
This commit is contained in:
Richard van der Hoff 2016-06-28 14:26:07 +01:00
parent eb3bad7718
commit 4a74fd9297
2 changed files with 9 additions and 0 deletions

View file

@ -415,6 +415,13 @@ size_t olm_ed25519_verify(
void * signature, size_t signature_length 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 #ifdef __cplusplus
} }
#endif #endif

View file

@ -382,4 +382,6 @@ Utility.prototype['ed25519_verify'] = restore_stack(function(
olm_exports["Account"] = Account; olm_exports["Account"] = Account;
olm_exports["Session"] = Session; olm_exports["Session"] = Session;
olm_exports["Utility"] = Utility; olm_exports["Utility"] = Utility;
olm_exports['set_log_level'] = Module['_olm_set_log_level'];
}(); }();