From eec6afcc902d3d3a4c8d9d616f43df932c868317 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Wed, 30 Oct 2024 18:03:50 +0100 Subject: [PATCH] cephfs: log errors --- pkg/storage/fs/cephfs/errors.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/storage/fs/cephfs/errors.go b/pkg/storage/fs/cephfs/errors.go index d866e6d837..6dbc5c7757 100644 --- a/pkg/storage/fs/cephfs/errors.go +++ b/pkg/storage/fs/cephfs/errors.go @@ -29,7 +29,7 @@ package cephfs import "C" import ( "fmt" - + "github.com/cs3org/reva/pkg/appctx" "github.com/cs3org/reva/pkg/errtypes" ) @@ -49,6 +49,8 @@ func getRevaError(err error) error { if err == nil { return nil } + log := appctx.getLogger() + log.Warn().Err("error", err).Msg("cephfs error") switch err.Error() { case errNotFound: return errtypes.NotFound("cephfs: entry not found")