You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/18 05:32:54 UTC

[GitHub] [apisix] JohnsonCaii commented on issue #8343: bug: log-rotate max_kept doesn't work if enable_compression: true

JohnsonCaii commented on issue #8343:
URL: https://github.com/apache/apisix/issues/8343#issuecomment-1319570361

   The logic is correct only if `enable_compression: false`. Please see my input here.
   
   > https://github.com/apache/apisix/blob/master/apisix/plugins/log-rotate.lua#L179 The `.tar.gz` suffix is hardcoded here.
   > 
   > The code itself didn't check if compression was enabled when cleaning up old files here. https://github.com/apache/apisix/blob/master/apisix/plugins/log-rotate.lua#L254
   > 
   > In the very first code of this feature, it's correct. [05fc230#diff-cec78832f4c2b34965a93f89b98b12104e34868088ae2a1380973a94d43c0a8aR125](https://github.com/apache/apisix/commit/05fc2306b5f005799e908273cfe11bd5f830459f#diff-cec78832f4c2b34965a93f89b98b12104e34868088ae2a1380973a94d43c0a8aR125)
   > 
   > Please have a check on it. Thanks
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org