return GNUNET_ERROR_TYPE_WARNING;
if (0 == strcasecmp (log, _("ERROR")))
return GNUNET_ERROR_TYPE_ERROR;
+ if (0 == strcasecmp (log, _("NONE")))
+ return GNUNET_ERROR_TYPE_NONE;
return GNUNET_ERROR_TYPE_INVALID;
}
const char *comp, const char *message, ...)
{
va_list va;
+ char comp_w_pid[128];
+
va_start (va, message);
- mylog (kind, comp, message, va);
+ GNUNET_snprintf (comp_w_pid,
+ sizeof (comp_w_pid),
+ "%s-%d",
+ comp,
+ getpid());
+ mylog (kind, comp_w_pid, message, va);
va_end (va);
}