Skip to content

Commit

Permalink
fix: use log.Printf instead of fmt.Printf
Browse files Browse the repository at this point in the history
  • Loading branch information
leizongmin committed Nov 18, 2021
1 parent 3d75a8b commit 4d77473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nfs_onlookup.go
Expand Up @@ -3,7 +3,7 @@ package nfs
import (
"bytes"
"context"
"fmt"
"log"
"os"

"github.com/go-git/go-billy/v5"
Expand Down Expand Up @@ -87,6 +87,6 @@ func onLookup(ctx context.Context, w *response, userHandle Handler) error {
}
}

fmt.Printf("No file for lookup of %v\n", string(obj.Filename))
log.Printf("No file for lookup of %v\n", string(obj.Filename))
return &NFSStatusError{NFSStatusNoEnt, os.ErrNotExist}
}

0 comments on commit 4d77473

Please sign in to comment.