15112: Use FieldLogger interface so tests can use ctxlog.TestLogger.
[arvados.git] / services / keep-balance / server.go
index 613a2f7d3c3da2e6c466ec8ac9345a9e2e70775e..c867d7b10de240d7a584c258c9cc19aa0dfe3922 100644 (file)
@@ -70,8 +70,8 @@ type RunOptions struct {
        Once        bool
        CommitPulls bool
        CommitTrash bool
-       Logger      *logrus.Logger
-       Dumper      *logrus.Logger
+       Logger      logrus.FieldLogger
+       Dumper      logrus.FieldLogger
 
        // SafeRendezvousState from the most recent balance operation,
        // or "" if unknown. If this changes from one run to the next,
@@ -86,8 +86,8 @@ type Server struct {
        metrics    *metrics
        listening  string // for tests
 
-       Logger *logrus.Logger
-       Dumper *logrus.Logger
+       Logger logrus.FieldLogger
+       Dumper logrus.FieldLogger
 }
 
 // NewServer returns a new Server that runs Balancers using the given