@@ -130,7 +130,7 @@ func TestInfo(t *testing.T) {
130130 defer ScopeWithoutShowLogs (t ).Close (t )
131131
132132 defer capture ()()
133- Info (context .Background (), "test" )
133+ Dev . Info (context .Background (), "test" )
134134 if ! contains ("I" , t ) {
135135 t .Errorf ("Info has wrong character: %q" , contents ())
136136 }
@@ -146,7 +146,7 @@ func TestUnstructuredEntryEmbedsErrorHints(t *testing.T) {
146146
147147 defer capture ()()
148148 err := errors .WithHint (errors .New ("hello" ), "world" )
149- Infof (context .Background (), "hello %v" , err )
149+ Dev . Infof (context .Background (), "hello %v" , err )
150150 t .Logf ("log contents:\n %s" , contents ())
151151 if ! contains ("HINT: " + startRedactable + "world" + endRedactable , t ) {
152152 t .Error ("hint failed" )
@@ -190,7 +190,7 @@ func TestError(t *testing.T) {
190190
191191 defer capture ()()
192192
193- Error (context .Background (), "test" )
193+ Dev . Error (context .Background (), "test" )
194194 if ! contains ("E" , t ) {
195195 t .Errorf ("Error has wrong character: %q" , contents ())
196196 }
@@ -208,7 +208,7 @@ func TestWarning(t *testing.T) {
208208
209209 defer capture ()()
210210
211- Warning (context .Background (), "test" )
211+ Dev . Warning (context .Background (), "test" )
212212 if ! contains ("W" , t ) {
213213 t .Errorf ("Warning has wrong character: %q" , contents ())
214214 }
@@ -326,7 +326,7 @@ func TestListLogFiles(t *testing.T) {
326326 defer leaktest .AfterTest (t )()
327327 defer ScopeWithoutShowLogs (t ).Close (t )
328328
329- Info (context .Background (), "x" )
329+ Dev . Info (context .Background (), "x" )
330330
331331 fileName := getDebugLogFileName (t )
332332
@@ -358,7 +358,7 @@ func TestFilePermissions(t *testing.T) {
358358 defer func (p os.FileMode ) { fs .filePermissions = p }(fs .filePermissions )
359359 fs .filePermissions = fileMode
360360
361- Info (context .Background (), "x" )
361+ Dev . Info (context .Background (), "x" )
362362
363363 fileName := fs .getFileName (t )
364364
@@ -413,7 +413,7 @@ func TestGetLogReader(t *testing.T) {
413413 strings .TrimSpace (strings .ReplaceAll (DescribeAppliedConfig (), "\n " , "\n " )))
414414
415415 // Force creation of a file on the default sink.
416- Info (context .Background (), "x" )
416+ Dev . Info (context .Background (), "x" )
417417 fileName := getDebugLogFileName (t )
418418 infoName := filepath .Base (fileName )
419419
@@ -523,20 +523,20 @@ func TestRollover(t *testing.T) {
523523 defer func (previous int64 ) { debugFileSink .logFileMaxSize = previous }(debugFileSink .logFileMaxSize )
524524 debugFileSink .logFileMaxSize = 2048
525525
526- Info (context .Background (), "x" ) // Be sure we have a file.
526+ Dev . Info (context .Background (), "x" ) // Be sure we have a file.
527527 if err != nil {
528528 t .Fatalf ("info has initial error: %v" , err )
529529 }
530530 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
532532 if err != nil {
533533 t .Fatalf ("info has error after big write: %v" , err )
534534 }
535535
536536 // Make sure the next log file gets a file name with a different
537537 // time stamp.
538538
539- Info (context .Background (), "x" ) // create a new file
539+ Dev . Info (context .Background (), "x" ) // create a new file
540540 if err != nil {
541541 t .Fatalf ("error after rotation: %v" , err )
542542 }
@@ -573,7 +573,7 @@ func TestFatalStacktraceStderr(t *testing.T) {
573573 defer capture ()()
574574
575575 traceback = level
576- Fatalf (context .Background (), "cinap" )
576+ Dev . Fatalf (context .Background (), "cinap" )
577577 cont := contents ()
578578 if ! strings .Contains (cont , " cinap" ) {
579579 t .Fatalf ("panic output does not contain cinap:\n %s" , cont )
@@ -623,7 +623,7 @@ func TestFd2Capture(t *testing.T) {
623623 }
624624 defer cleanupFn ()
625625
626- Infof (context .Background (), "test" )
626+ Dev . Infof (context .Background (), "test" )
627627
628628 const stderrText = "hello stderr"
629629 fmt .Fprint (os .Stderr , stderrText )
@@ -649,8 +649,8 @@ func TestFileSeverityFilter(t *testing.T) {
649649 }
650650 }
651651
652- Infof (context .Background (), "test1" )
653- Errorf (context .Background (), "test2" )
652+ Dev . Infof (context .Background (), "test1" )
653+ Dev . Errorf (context .Background (), "test2" )
654654
655655 FlushFiles ()
656656
@@ -766,7 +766,7 @@ func TestLogEntryPropagation(t *testing.T) {
766766 // failure to write on stderr is graceful and the message gets
767767 // printed on the file output (and can be picked up by the contains
768768 // function). If it is not, the test runner will stop abruptly.
769- Error (context .Background (), specialMessage )
769+ Dev . Error (context .Background (), specialMessage )
770770
771771 if ! contains (specialMessage , t ) {
772772 t .Fatalf ("expected special message in file, got:\n %s" , contents ())
0 commit comments