mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Prettifying reporter output in case no epxression is associated with
runtime error.
This commit is contained in:
parent
4059d4b4f1
commit
b6a0802227
3 changed files with 7 additions and 2 deletions
5
CHANGES
5
CHANGES
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
2.5-beta-29 | 2016-09-28 18:18:35 -0700
|
||||||
|
|
||||||
|
* Prettifying reporter output in case no epxression is associated
|
||||||
|
with runtime error. (Robin Sommer)
|
||||||
|
|
||||||
2.5-beta-28 | 2016-09-27 11:44:33 -0700
|
2.5-beta-28 | 2016-09-27 11:44:33 -0700
|
||||||
|
|
||||||
* Check if the number of fields in a log write are equal to the
|
* Check if the number of fields in a log write are equal to the
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.5-beta-28
|
2.5-beta-29
|
||||||
|
|
|
@ -318,7 +318,7 @@ void Reporter::DoLog(const char* prefix, EventHandlerPtr event, FILE* out,
|
||||||
FatalError("out of memory in Reporter");
|
FatalError("out of memory in Reporter");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( postfix )
|
if ( postfix && *postfix )
|
||||||
// Note, if you change this fmt string, adjust the additional
|
// Note, if you change this fmt string, adjust the additional
|
||||||
// buffer size above.
|
// buffer size above.
|
||||||
safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);
|
safe_snprintf(buffer + strlen(buffer), size - strlen(buffer), " [%s]", postfix);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue