Fix Xprt bug by disabling code that merges multiple audit messages (Bug
#964, Roland Mainz).
This commit is contained in:
parent
922fd3a2e5
commit
3f84e4f71d
10
os/log.c
10
os/log.c
|
@ -487,6 +487,15 @@ VAuditF(const char *f, va_list args)
|
||||||
prefix = AuditPrefix();
|
prefix = AuditPrefix();
|
||||||
len = vsnprintf(buf, sizeof(buf), f, args);
|
len = vsnprintf(buf, sizeof(buf), f, args);
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
/* XXX Compressing duplicated messages is temporarily disabled to
|
||||||
|
* work around bugzilla 964:
|
||||||
|
* https://freedesktop.org/bugzilla/show_bug.cgi?id=964
|
||||||
|
*/
|
||||||
|
ErrorF("%s%s", prefix != NULL ? prefix : "", buf);
|
||||||
|
oldlen = -1;
|
||||||
|
nrepeat = 0;
|
||||||
|
#else
|
||||||
if (len == oldlen && strcmp(buf, oldbuf) == 0) {
|
if (len == oldlen && strcmp(buf, oldbuf) == 0) {
|
||||||
/* Message already seen */
|
/* Message already seen */
|
||||||
nrepeat++;
|
nrepeat++;
|
||||||
|
@ -500,6 +509,7 @@ VAuditF(const char *f, va_list args)
|
||||||
nrepeat = 0;
|
nrepeat = 0;
|
||||||
auditTimer = TimerSet(auditTimer, 0, AUDIT_TIMEOUT, AuditFlush, NULL);
|
auditTimer = TimerSet(auditTimer, 0, AUDIT_TIMEOUT, AuditFlush, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (prefix != NULL)
|
if (prefix != NULL)
|
||||||
free(prefix);
|
free(prefix);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue