Skip to content

Commit 351ae35

Browse files
committed
Fix golangci-lint revive warnings
Replace log.Printf with log.Print where no formatting is needed.
1 parent c1501da commit 351ae35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/extractor/readability.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (f *UReadability) getContent(ctx context.Context, body, reqURL string, rule
187187
log.Printf("[WARN] custom extractor failed for %s, error=%v", reqURL, err) // back to general parser
188188
}
189189
} else {
190-
log.Printf("[DEBUG] no rules defined!")
190+
log.Print("[DEBUG] no rules defined!")
191191
}
192192

193193
return genParser(body, reqURL)

backend/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func main() {
6363
stop := make(chan os.Signal, 1)
6464
signal.Notify(stop, os.Interrupt, syscall.SIGTERM)
6565
<-stop
66-
log.Printf("[WARN] interrupt signal")
66+
log.Print("[WARN] interrupt signal")
6767
cancel()
6868
}()
6969

0 commit comments

Comments
 (0)