github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/logger/testpackage/subpackage/subsubpackage/testutil.go (about) 1 package subsubpackage 2 3 import ( 4 "context" 5 6 "github.com/pkg/errors" 7 "github.com/rs/zerolog/log" 8 ) 9 10 // TestLog exists to allow a test to make sure that we don't strip off package names. 11 func TestLog(errorMessage string, message string) { 12 log.Ctx(context.Background()).Err(errors.WithStack(errors.New(errorMessage))).Msg(message) 13 }