mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Logging: Abolished stdio in favor of write() to make the logging faster.
This commit is contained in:
@@ -656,15 +656,20 @@
|
||||
VARARG;
|
||||
|
||||
if (whati->varcount && !(fs->flags & FF_SILENT))
|
||||
{
|
||||
if (!fs->buf.class)
|
||||
log_prepare(&fs->buf, *L_INFO);
|
||||
|
||||
for (uint i=0; i<whati->varcount; i++)
|
||||
val_format(&(vv(i)), &fs->buf);
|
||||
val_format(&(vv(i)), &fs->buf.buf);
|
||||
}
|
||||
}
|
||||
|
||||
INST(FI_FLUSH, 0, 0) {
|
||||
NEVER_CONSTANT;
|
||||
if (!(fs->flags & FF_SILENT))
|
||||
/* After log_commit, the buffer is reset */
|
||||
log_commit(*L_INFO, &fs->buf);
|
||||
log_commit(&fs->buf);
|
||||
}
|
||||
|
||||
INST(FI_DIE, 0, 0) {
|
||||
|
Reference in New Issue
Block a user