summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/doctor/paths.go2
-rw-r--r--modules/log/event.go4
-rw-r--r--modules/queue/unique_queue_disk_channel_test.go2
-rw-r--r--modules/web/routing/logger_manager.go2
4 files changed, 4 insertions, 6 deletions
diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go
index d7bf2539e7..1558efc25b 100644
--- a/modules/doctor/paths.go
+++ b/modules/doctor/paths.go
@@ -106,7 +106,7 @@ func isWritableDir(path string) error {
return err
}
if err := os.Remove(tmpFile.Name()); err != nil {
- fmt.Printf("Warning: can't remove temporary file: '%s'\n", tmpFile.Name())
+ fmt.Printf("Warning: can't remove temporary file: '%s'\n", tmpFile.Name()) //nolint:forbidigo
}
tmpFile.Close()
return nil
diff --git a/modules/log/event.go b/modules/log/event.go
index 5729e022bf..723c8810bc 100644
--- a/modules/log/event.go
+++ b/modules/log/event.go
@@ -345,7 +345,7 @@ func (m *MultiChannelledLog) Start() {
for _, logger := range m.loggers {
err := logger.LogEvent(event)
if err != nil {
- fmt.Println(err)
+ fmt.Println(err) //nolint:forbidigo
}
}
m.rwmutex.RUnlock()
@@ -379,7 +379,7 @@ func (m *MultiChannelledLog) emptyQueue() bool {
for _, logger := range m.loggers {
err := logger.LogEvent(event)
if err != nil {
- fmt.Println(err)
+ fmt.Println(err) //nolint:forbidigo
}
}
m.rwmutex.RUnlock()
diff --git a/modules/queue/unique_queue_disk_channel_test.go b/modules/queue/unique_queue_disk_channel_test.go
index e1a2132dd6..f75c69f785 100644
--- a/modules/queue/unique_queue_disk_channel_test.go
+++ b/modules/queue/unique_queue_disk_channel_test.go
@@ -4,7 +4,6 @@
package queue
import (
- "fmt"
"strconv"
"sync"
"testing"
@@ -17,7 +16,6 @@ import (
func TestPersistableChannelUniqueQueue(t *testing.T) {
tmpDir := t.TempDir()
- fmt.Printf("TempDir %s\n", tmpDir)
_ = log.NewLogger(1000, "console", "console", `{"level":"warn","stacktracelevel":"NONE","stderr":true}`)
// Common function to create the Queue
diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go
index aa25ec3a27..acd8c4b7dc 100644
--- a/modules/web/routing/logger_manager.go
+++ b/modules/web/routing/logger_manager.go
@@ -31,7 +31,7 @@ const (
type Printer func(trigger Event, record *requestRecord)
type requestRecordsManager struct {
- print Printer
+ print Printer //nolint:forbidigo
lock sync.Mutex