Skip to content

Commit 5bbc23d

Browse files
committed
Use logger instead of fmt
Done because this is running outside a script.
1 parent 984356f commit 5bbc23d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

internal/testutils/testutils.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package testutils
22

33
import (
4-
"fmt"
54
"sync"
65
"testing"
76

8-
"github.com/TwiN/go-color"
7+
"github.com/sirupsen/logrus"
98
"github.com/source-academy/stories-backend/internal/config"
109
"gorm.io/gorm"
1110
)
@@ -16,10 +15,9 @@ var (
1615
)
1716

1817
func GetTestConf(testEnvPath string) config.Config {
19-
yellowChevron := color.With(color.Yellow, "❯")
20-
fmt.Println(yellowChevron, "Getting test conf")
18+
logrus.Infoln("Reading test configuration...")
2119
once.Do(func() { // <-- atomic, does not allow repeating
22-
fmt.Println(yellowChevron, yellowChevron, yellowChevron, "Creating test conf")
20+
logrus.Infoln("Creating test configuration...")
2321
testConfig, _ = config.LoadFromEnvironment(testEnvPath)
2422
})
2523
return *testConfig

0 commit comments

Comments
 (0)