mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat(caddystorage): minor logging formatting
This commit is contained in:
1 parent
6ab02f95fe
commit
f7be7c55c9
1 file changed
+1
-2
@@ -79,6 +79,5 @@ func storageError(operation, key string, err error) error {
|
|||||||
if status.Code(err) == codes.NotFound {
|
if status.Code(err) == codes.NotFound {
|
||||||
err = fs.ErrNotExist
|
err = fs.ErrNotExist
|
||||||
}
|
}
|
||||||
// TODO: figure out what the appropriate way of calling the storage in caddy logs is, e.g. include uncloud or redundant if logger includes the name?
|
return fmt.Errorf("uncloud storage: %s key %q: %w", operation, key, err)
|
||||||
return fmt.Errorf("%s Caddy storage key '%s': %w", operation, key, err)
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user