We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ade13a commit 7d9980eCopy full SHA for 7d9980e
1 file changed
internal/api/middleware/response_writer.go
@@ -12,6 +12,7 @@ import (
12
"github.com/gin-gonic/gin"
13
"github.com/router-for-me/CLIProxyAPI/v7/internal/interfaces"
14
"github.com/router-for-me/CLIProxyAPI/v7/internal/logging"
15
+ log "github.com/sirupsen/logrus"
16
)
17
18
const requestBodyOverrideContextKey = "REQUEST_BODY_OVERRIDE"
@@ -570,6 +571,8 @@ func cleanupFileBodySources(sources ...*logging.FileBodySource) {
570
571
if source == nil {
572
continue
573
}
- _ = source.Cleanup()
574
+ if errCleanup := source.Cleanup(); errCleanup != nil {
575
+ log.WithError(errCleanup).Warn("failed to clean up log part files")
576
+ }
577
578
0 commit comments