mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
logging/Manager: Fix crash for rotation format function not returning
While working on a rotation format function, ran into Zeek crashing when not returning a value from it, fix and recover the same way as for scripting errors.
This commit is contained in:
parent
6ac72a31bf
commit
a5e7faf564
5 changed files with 77 additions and 5 deletions
|
@ -163,9 +163,6 @@ export {
|
|||
};
|
||||
|
||||
## A function that one may use to customize log file rotation paths.
|
||||
## Note that the "fname" field of the *ri* argument is always an
|
||||
## empty string for the purpose of this function call (i.e. the full
|
||||
## file name is not determined yet).
|
||||
const rotation_format_func: function(ri: RotationFmtInfo): RotationPath &redef;
|
||||
|
||||
## Default naming format for timestamps embedded into filenames.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue