mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user