mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Use profanity logs for OMEMO logs
This commit is contained in:
parent
bcd582be42
commit
3d8c928e53
@ -594,7 +594,21 @@ unlock(void *user_data)
|
|||||||
static void
|
static void
|
||||||
omemo_log(int level, const char *message, size_t len, void *user_data)
|
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
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user