Fix closing timestamp of rotated log files in supervised-cluster mode

This commit is contained in:
Jon Siwek 2020-08-25 17:04:12 -07:00
parent 8d3c07b62a
commit 99d9a3a48c
6 changed files with 66 additions and 62 deletions

View file

@ -21,7 +21,7 @@ export {
function my_rotation_format_func(ri: Log::RotationFmtInfo): Log::RotationPath
{
local open_str = strftime(Log::default_rotation_date_format, ri$open);
local close_str = strftime(Log::default_rotation_date_format, ri$open);
local close_str = strftime(Log::default_rotation_date_format, ri$close);
local base = fmt("%s__%s__%s__", ri$path, open_str, close_str);
local rval = Log::RotationPath($file_basename=base);
return rval;