@@ -18,7 +18,7 @@ func prepareCollectionWithPanicProtection(ctx context.Context, monitortest Monit
1818 if r := recover (); r != nil {
1919 err = fmt .Errorf ("caught panic: %v" , r )
2020 logrus .Error ("recovering from panic" )
21- fmt .Print (debug .Stack ())
21+ fmt .Print (string ( debug .Stack () ))
2222 }
2323 }()
2424
@@ -31,7 +31,7 @@ func startCollectionWithPanicProtection(ctx context.Context, monitortest Monitor
3131 if r := recover (); r != nil {
3232 err = fmt .Errorf ("caught panic: %v" , r )
3333 logrus .Error ("recovering from panic" )
34- fmt .Print (debug .Stack ())
34+ fmt .Print (string ( debug .Stack () ))
3535 }
3636 }()
3737
@@ -44,7 +44,7 @@ func collectDataWithPanicProtection(ctx context.Context, monitortest MonitorTest
4444 if r := recover (); r != nil {
4545 err = fmt .Errorf ("caught panic: %v" , r )
4646 logrus .Error ("recovering from panic" )
47- fmt .Print (debug .Stack ())
47+ fmt .Print (string ( debug .Stack () ))
4848 }
4949 }()
5050
@@ -57,7 +57,7 @@ func constructComputedIntervalsWithPanicProtection(ctx context.Context, monitort
5757 if r := recover (); r != nil {
5858 err = fmt .Errorf ("caught panic: %v" , r )
5959 logrus .Error ("recovering from panic" )
60- fmt .Print (debug .Stack ())
60+ fmt .Print (string ( debug .Stack () ))
6161 }
6262 }()
6363
@@ -70,7 +70,7 @@ func evaluateTestsFromConstructedIntervalsWithPanicProtection(ctx context.Contex
7070 if r := recover (); r != nil {
7171 err = fmt .Errorf ("caught panic: %v" , r )
7272 logrus .Error ("recovering from panic" )
73- fmt .Print (debug .Stack ())
73+ fmt .Print (string ( debug .Stack () ))
7474 }
7575 }()
7676
@@ -83,7 +83,7 @@ func writeContentToStorageWithPanicProtection(ctx context.Context, monitortest M
8383 if r := recover (); r != nil {
8484 err = fmt .Errorf ("caught panic: %v" , r )
8585 logrus .Error ("recovering from panic" )
86- fmt .Print (debug .Stack ())
86+ fmt .Print (string ( debug .Stack () ))
8787 }
8888 }()
8989
@@ -96,7 +96,7 @@ func cleanupWithPanicProtection(ctx context.Context, monitortest MonitorTest) (e
9696 if r := recover (); r != nil {
9797 err = fmt .Errorf ("caught panic: %v" , r )
9898 logrus .WithError (err ).Error ("recovering from panic" )
99- fmt .Print (debug .Stack ())
99+ fmt .Print (string ( debug .Stack () ))
100100 }
101101 }()
102102
0 commit comments