@@ -130,7 +130,7 @@ func TestInfo(t *testing.T) {
130
130
defer ScopeWithoutShowLogs (t ).Close (t )
131
131
132
132
defer capture ()()
133
- Info (context .Background (), "test" )
133
+ Dev . Info (context .Background (), "test" )
134
134
if ! contains ("I" , t ) {
135
135
t .Errorf ("Info has wrong character: %q" , contents ())
136
136
}
@@ -146,7 +146,7 @@ func TestUnstructuredEntryEmbedsErrorHints(t *testing.T) {
146
146
147
147
defer capture ()()
148
148
err := errors .WithHint (errors .New ("hello" ), "world" )
149
- Infof (context .Background (), "hello %v" , err )
149
+ Dev . Infof (context .Background (), "hello %v" , err )
150
150
t .Logf ("log contents:\n %s" , contents ())
151
151
if ! contains ("HINT: " + startRedactable + "world" + endRedactable , t ) {
152
152
t .Error ("hint failed" )
@@ -190,7 +190,7 @@ func TestError(t *testing.T) {
190
190
191
191
defer capture ()()
192
192
193
- Error (context .Background (), "test" )
193
+ Dev . Error (context .Background (), "test" )
194
194
if ! contains ("E" , t ) {
195
195
t .Errorf ("Error has wrong character: %q" , contents ())
196
196
}
@@ -208,7 +208,7 @@ func TestWarning(t *testing.T) {
208
208
209
209
defer capture ()()
210
210
211
- Warning (context .Background (), "test" )
211
+ Dev . Warning (context .Background (), "test" )
212
212
if ! contains ("W" , t ) {
213
213
t .Errorf ("Warning has wrong character: %q" , contents ())
214
214
}
@@ -326,7 +326,7 @@ func TestListLogFiles(t *testing.T) {
326
326
defer leaktest .AfterTest (t )()
327
327
defer ScopeWithoutShowLogs (t ).Close (t )
328
328
329
- Info (context .Background (), "x" )
329
+ Dev . Info (context .Background (), "x" )
330
330
331
331
fileName := getDebugLogFileName (t )
332
332
@@ -358,7 +358,7 @@ func TestFilePermissions(t *testing.T) {
358
358
defer func (p os.FileMode ) { fs .filePermissions = p }(fs .filePermissions )
359
359
fs .filePermissions = fileMode
360
360
361
- Info (context .Background (), "x" )
361
+ Dev . Info (context .Background (), "x" )
362
362
363
363
fileName := fs .getFileName (t )
364
364
@@ -413,7 +413,7 @@ func TestGetLogReader(t *testing.T) {
413
413
strings .TrimSpace (strings .ReplaceAll (DescribeAppliedConfig (), "\n " , "\n " )))
414
414
415
415
// Force creation of a file on the default sink.
416
- Info (context .Background (), "x" )
416
+ Dev . Info (context .Background (), "x" )
417
417
fileName := getDebugLogFileName (t )
418
418
infoName := filepath .Base (fileName )
419
419
@@ -523,20 +523,20 @@ func TestRollover(t *testing.T) {
523
523
defer func (previous int64 ) { debugFileSink .logFileMaxSize = previous }(debugFileSink .logFileMaxSize )
524
524
debugFileSink .logFileMaxSize = 2048
525
525
526
- Info (context .Background (), "x" ) // Be sure we have a file.
526
+ Dev . Info (context .Background (), "x" ) // Be sure we have a file.
527
527
if err != nil {
528
528
t .Fatalf ("info has initial error: %v" , err )
529
529
}
530
530
fname0 := debugFileSink .getFileName (t )
531
- Infof (context .Background (), "%s" , strings .Repeat ("x" , int (debugFileSink .logFileMaxSize ))) // force a rollover
531
+ Dev . Infof (context .Background (), "%s" , strings .Repeat ("x" , int (debugFileSink .logFileMaxSize ))) // force a rollover
532
532
if err != nil {
533
533
t .Fatalf ("info has error after big write: %v" , err )
534
534
}
535
535
536
536
// Make sure the next log file gets a file name with a different
537
537
// time stamp.
538
538
539
- Info (context .Background (), "x" ) // create a new file
539
+ Dev . Info (context .Background (), "x" ) // create a new file
540
540
if err != nil {
541
541
t .Fatalf ("error after rotation: %v" , err )
542
542
}
@@ -573,7 +573,7 @@ func TestFatalStacktraceStderr(t *testing.T) {
573
573
defer capture ()()
574
574
575
575
traceback = level
576
- Fatalf (context .Background (), "cinap" )
576
+ Dev . Fatalf (context .Background (), "cinap" )
577
577
cont := contents ()
578
578
if ! strings .Contains (cont , " cinap" ) {
579
579
t .Fatalf ("panic output does not contain cinap:\n %s" , cont )
@@ -623,7 +623,7 @@ func TestFd2Capture(t *testing.T) {
623
623
}
624
624
defer cleanupFn ()
625
625
626
- Infof (context .Background (), "test" )
626
+ Dev . Infof (context .Background (), "test" )
627
627
628
628
const stderrText = "hello stderr"
629
629
fmt .Fprint (os .Stderr , stderrText )
@@ -649,8 +649,8 @@ func TestFileSeverityFilter(t *testing.T) {
649
649
}
650
650
}
651
651
652
- Infof (context .Background (), "test1" )
653
- Errorf (context .Background (), "test2" )
652
+ Dev . Infof (context .Background (), "test1" )
653
+ Dev . Errorf (context .Background (), "test2" )
654
654
655
655
FlushFiles ()
656
656
@@ -766,7 +766,7 @@ func TestLogEntryPropagation(t *testing.T) {
766
766
// failure to write on stderr is graceful and the message gets
767
767
// printed on the file output (and can be picked up by the contains
768
768
// function). If it is not, the test runner will stop abruptly.
769
- Error (context .Background (), specialMessage )
769
+ Dev . Error (context .Background (), specialMessage )
770
770
771
771
if ! contains (specialMessage , t ) {
772
772
t .Fatalf ("expected special message in file, got:\n %s" , contents ())
0 commit comments