tidy cleanup logs
This commit is contained in:
parent
1ffb1e2874
commit
0bd0f4a29c
1 changed files with 2 additions and 2 deletions
|
@ -32,10 +32,10 @@ func Cleanup() {
|
|||
lock.Lock()
|
||||
defer lock.Unlock()
|
||||
if payloadsDir != "" {
|
||||
slog.Debug("cleaning up payloads dir " + payloadsDir)
|
||||
slog.Debug("cleaning up", "dir", payloadsDir)
|
||||
err := os.RemoveAll(payloadsDir)
|
||||
if err != nil {
|
||||
slog.Warn(fmt.Sprintf("failed to cleanup tmp dir: %s", err))
|
||||
slog.Warn("failed to clean up", "dir", payloadsDir, "err", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue