/**
* Running component.
*/
-static const char *component;
+static char *component;
/**
* Minimum log level.
{
FILE *altlog;
- component = comp;
+ GNUNET_free_non_null (component);
+ GNUNET_asprintf (&component,
+ "%s-%d",
+ comp,
+ getpid());
min_level = get_type (loglevel);
if (logfile == NULL)
return GNUNET_OK;
{
struct CustomLogger *pos;
if (GNUNET_stderr != NULL)
- fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp,
+ fprintf (GNUNET_stderr, "%s %s %s %s", datestr, comp,
GNUNET_error_type_to_string (kind), msg);
pos = loggers;
while (pos != NULL)