Tell core that we want to have this packet delivered
[oweals/gnunet.git] / src / util / common_logging.c
index 223c9221835c4b3aa09be1c61205503703ce7212..1a32c44bcf6cdfb8c6191af1176efdfae9d3a696 100644 (file)
@@ -152,6 +152,8 @@ get_type (const char *log)
     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;
 }
 
@@ -434,8 +436,15 @@ GNUNET_log_from (enum GNUNET_ErrorType kind,
                  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);
 }