Clean up the loggings from error mapping
@@ -72,7 +72,9 @@ type errorMapping struct {
func (em *errorMapping) mapError(op string, err error) error {
fsErr := errno(err)
- em.logger.Printf("%s: %v: %v", op, fsErr, err)
+ if err != nil && fsErr != nil && err != fsErr {
+ em.logger.Printf("%s: %v, %v", op, fsErr, err)
+ }
return fsErr
}
