1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Use profanity logs for OMEMO logs

This commit is contained in:
Paul Fariello 2019-03-05 20:14:02 +01:40
parent bcd582be42
commit 3d8c928e53

View File

@ -594,7 +594,21 @@ unlock(void *user_data)
static void
omemo_log(int level, const char *message, size_t len, void *user_data)
{
cons_show("OMEMO: %s", message);
switch (level) {
case SG_LOG_ERROR:
log_error("OMEMO: %s", message);
break;
case SG_LOG_WARNING:
log_warning("OMEMO: %s", message);
break;
case SG_LOG_NOTICE:
case SG_LOG_INFO:
log_info("OMEMO: %s", message);
break;
case SG_LOG_DEBUG:
log_debug("OMEMO: %s", message);
break;
}
}
static gboolean