File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
"net/http"
18
18
"os"
19
19
"strconv"
20
+ "strings"
20
21
"sync"
21
22
"sync/atomic"
22
23
"time"
@@ -108,6 +109,10 @@ func NewLogger(cfg Config, logf tslogger.Logf) *Logger {
108
109
procID = 7
109
110
}
110
111
}
112
+
113
+ stdLogf := func (f string , a ... any ) {
114
+ fmt .Fprintf (cfg .Stderr , strings .TrimSuffix (f , "\n " )+ "\n " , a ... )
115
+ }
111
116
l := & Logger {
112
117
privateID : cfg .PrivateID ,
113
118
stderr : cfg .Stderr ,
@@ -121,7 +126,7 @@ func NewLogger(cfg Config, logf tslogger.Logf) *Logger {
121
126
sentinel : make (chan int32 , 16 ),
122
127
drainLogs : cfg .DrainLogs ,
123
128
timeNow : cfg .TimeNow ,
124
- bo : backoff .NewBackoff ("logtail" , logf , 30 * time .Second ),
129
+ bo : backoff .NewBackoff ("logtail" , stdLogf , 30 * time .Second ),
125
130
metricsDelta : cfg .MetricsDelta ,
126
131
127
132
procID : procID ,
You can’t perform that action at this time.
0 commit comments