logging: Do not log timestamp through syslog

Syslog puts the timestamp to every message anyway so this removes
redundant data.
This commit is contained in:
Jiri Denemark
2011-09-28 15:20:07 +02:00
parent 9b706b2703
commit 2a449549c1
3 changed files with 83 additions and 55 deletions

View File

@@ -458,11 +458,13 @@ virtTestLogOutput(const char *category ATTRIBUTE_UNUSED,
int priority ATTRIBUTE_UNUSED,
const char *funcname ATTRIBUTE_UNUSED,
long long lineno ATTRIBUTE_UNUSED,
const char *str, int len, void *data)
const char *timestamp,
const char *str,
void *data)
{
struct virtTestLogData *log = data;
virBufferAdd(&log->buf, str, len);
return len;
virBufferAsprintf(&log->buf, "%s: %s", timestamp, str);
return strlen(timestamp) + 2 + strlen(str);
}
static void