Properly accompany the MARK message with the facility
This commit is contained in:
parent
beecd897e4
commit
b9e5b7b942
@ -1621,10 +1621,7 @@ void logmsg(pri, msg, from, flags)
|
|||||||
timestamp = ctime(&now) + 4;
|
timestamp = ctime(&now) + 4;
|
||||||
|
|
||||||
/* extract facility and priority level */
|
/* extract facility and priority level */
|
||||||
if (flags & MARK)
|
fac = LOG_FAC(pri);
|
||||||
fac = LOG_NFACILITIES;
|
|
||||||
else
|
|
||||||
fac = LOG_FAC(pri);
|
|
||||||
prilev = LOG_PRI(pri);
|
prilev = LOG_PRI(pri);
|
||||||
|
|
||||||
/* log the message to the particular outputs */
|
/* log the message to the particular outputs */
|
||||||
@ -2145,7 +2142,7 @@ void domark()
|
|||||||
now = time(0);
|
now = time(0);
|
||||||
MarkSeq += TIMERINTVL;
|
MarkSeq += TIMERINTVL;
|
||||||
if (MarkSeq >= MarkInterval) {
|
if (MarkSeq >= MarkInterval) {
|
||||||
logmsg(LOG_INFO, "-- MARK --", LocalHostName, ADDDATE|MARK);
|
logmsg(LOG_MARK|LOG_INFO, "-- MARK --", LocalHostName, ADDDATE|MARK);
|
||||||
MarkSeq = 0;
|
MarkSeq = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user