chore: fix some logging output (#3884)

Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
This commit is contained in:
Weston Steimel
2025-05-13 13:15:19 +01:00
committed by GitHub
parent 59b880f26a
commit de88b973f8
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ func (d *Deferred) FileContentsByLocation(location file.Location) (io.ReadCloser
func (d *Deferred) HasPath(s string) bool {
r, err := d.getResolver()
if err != nil {
log.Debug("unable to get resolver: %v", err)
log.Debugf("unable to get resolver: %v", err)
return false
}
return r.HasPath(s)
@@ -84,7 +84,7 @@ func (d *Deferred) RelativeFileByPath(location file.Location, path string) *file
func (d *Deferred) AllLocations(ctx context.Context) <-chan file.Location {
r, err := d.getResolver()
if err != nil {
log.Debug("unable to get resolver: %v", err)
log.Debugf("unable to get resolver: %v", err)
return nil
}
return r.AllLocations(ctx)