Skip to content

Commit

Permalink
cephfs: log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Oct 30, 2024
1 parent 6b0f9b3 commit eec6afc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/storage/fs/cephfs/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package cephfs
import "C"
import (
"fmt"

"github.com/cs3org/reva/pkg/appctx"
"github.com/cs3org/reva/pkg/errtypes"
)

Expand All @@ -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")
Expand Down

0 comments on commit eec6afc

Please sign in to comment.