summaryrefslogtreecommitdiff
path: root/internal/storage/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/storage/storage.go')
-rw-r--r--internal/storage/storage.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/storage/storage.go b/internal/storage/storage.go
index f73185268..b66545185 100644
--- a/internal/storage/storage.go
+++ b/internal/storage/storage.go
@@ -128,8 +128,9 @@ func NewFileStorage() (*Driver, error) {
return nil, fmt.Errorf("error opening disk storage: %w", err)
}
+ // Perform an initial storage clean to delete old dirs.
if err := disk.Clean(context.Background()); err != nil {
- log.Errorf("error performing storage cleanup: %v", err)
+ log.Errorf(nil, "error performing storage cleanup: %v", err)
}
return &Driver{