Skip to content

Commit

Permalink
Update apisix/plugins/log-rotate.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Liu Wei <[email protected]>
  • Loading branch information
Revolyssup and monkeyDluffy6017 authored Nov 1, 2023
1 parent a414ad2 commit 25b8cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/log-rotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ local function rotate()
max_size = attr.max_size or max_size
enable_compression = attr.enable_compression or enable_compression
end
local timeout = interval * 100 -- Timeout for compression is interval in milliseconds
local timeout = interval * 1000 -- Timeout for compression is interval in milliseconds

core.log.info("rotate interval:", interval)
core.log.info("rotate max keep:", max_kept)
Expand Down

0 comments on commit 25b8cea

Please sign in to comment.