Moved hardcoded TRACE loglevel from app code into test code

This commit is contained in:
Jason Fulghum
2023-01-25 16:19:50 -08:00
parent 2ef65c0fa4
commit 3dd93dcf50
2 changed files with 1 additions and 5 deletions

View File

@@ -60,10 +60,6 @@ func newDoltBinlogReplicaController() *doltBinlogReplicaController {
controller.status.ReplicaIoRunning = binlogreplication.ReplicaIoNotRunning
controller.status.ReplicaSqlRunning = binlogreplication.ReplicaSqlNotRunning
controller.applier = newBinlogReplicaApplier(controller.filters)
// TODO: Set the log level in the tests; don't just hardcode it here
logger.SetLevel(logrus.TraceLevel)
return &controller
}

View File

@@ -393,7 +393,7 @@ func startDoltSqlServer(dir string) (int, *os.Process, error) {
cmd := exec.Command("go", "run", "./cmd/dolt",
"sql-server",
"-uroot",
"--loglevel=DEBUG",
"--loglevel=TRACE",
fmt.Sprintf("--data-dir=%s", dir),
fmt.Sprintf("--port=%v", doltPort),
fmt.Sprintf("--socket=dolt.%v.sock", doltPort))