start messing around with logger

This commit is contained in:
tsmethurst 2021-08-26 15:05:43 +02:00
commit 2905a13d16
3 changed files with 32 additions and 6 deletions

View file

@ -18,11 +18,17 @@
package testrig
import "github.com/sirupsen/logrus"
import (
"github.com/superseriousbusiness/gotosocial/internal/log"
"github.com/sirupsen/logrus"
)
// NewTestLog returns a trace level logger for testing
func NewTestLog() *logrus.Logger {
log := logrus.New()
log.SetLevel(logrus.TraceLevel)
return log
logger, err := log.New("trace")
if err != nil {
panic(err)
}
return logger
}