if (msg->notify && msg->severity < LOG_TRACE) {
snprintf(buf, sizeof(buf), "%s %s", t, msg->msg);
comet_mailbox_add_logmsg(buf, msg->severity >= LOG_DEBUG, 0);
-
- htsmsg_t *m = htsmsg_create_map();
- htsmsg_add_str(m, "notificationClass", "logmessage");
- htsmsg_add_str(m, "logtxt", buf);
- comet_mailbox_add_message(m, msg->severity >= LOG_DEBUG, 0);
- htsmsg_destroy(m);
}
/* Console */
cmb->cmb_last_used = 0; /* Make sure we're not flushed out */
if (http_access_verify(hc, ACCESS_ADMIN)) {
if (!cmb->cmb_restricted) {
+ cmb->cmb_restricted = 1;
pthread_mutex_unlock(&comet_mutex);
comet_mailbox_add_logmsg(tvh_gettext_lang(lang, N_("Restricted log mode (no administrator)")), 0, 0);
pthread_mutex_lock(&comet_mutex);
- cmb->cmb_restricted = 1;
}
}