Fixes https://emqx.atlassian.net/browse/EMQX-11036 From `logger_disk_log_h:open_disk_log`: ```erlang open_disk_log(Name,File,Type,MaxNoBytes,MaxNoFiles) -> case filelib:ensure_dir(File) of ok -> Size = if Type==halt -> MaxNoBytes; Type==wrap -> {MaxNoBytes,MaxNoFiles} %% <------- end, Opts = [{name, Name}, {file, File}, {size, Size}, {type, Type}, {linkto, self()}, {repair, false}, {format, external}, {notify, true}, {quiet, true}, {mode, read_write}], case disk_log:open(Opts) of ``` Affects all file loggers (audit included): ``` % emqx_config_logger:update_log_handler/1 -> ok iex(emqx@127.0.0.1)14> Config override: log.file.emqx_audit is updated, but failed to add handler: {handler_not_added, {badarg, [{size, {infinity, 10}}, {type, wrap}, {linkto, <0.1952.0>}, {repair, false}, {format, external}, {notify, true}, {quiet, true}, {mode, read_write}]}} ```
108 B
108 B
Fixed an issue where logging would stop if "Rotation Size" would be set to infinity on file log handlers.