summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-12 23:45:12 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2020-04-12 23:45:12 (GMT)
commit52d35abf317beec142c002a07e88fde756246014 (patch)
tree9967730e643d433f0ed09cda83a665b2c82304fd
parent89f471f9f129e2c9876091b4c229caac426db93d (diff)
nicer logging
-rw-r--r--cmd/dolmetschctld/statemachine.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go
index 3e7461b..21b38e2 100644
--- a/cmd/dolmetschctld/statemachine.go
+++ b/cmd/dolmetschctld/statemachine.go
@@ -204,7 +204,6 @@ func (sm *StateMachine) setLanguage(l types.Language) error {
}
}
sm.language = l
- log.Printf("new target language: '%s'", sm.language)
return nil
}
@@ -213,7 +212,6 @@ func (sm *StateMachine) setOriginal2InterpreterRatio(r float32) error {
return fmt.Errorf("original-interpreter ratio '%1.3f' is invalid, must be between 0.0 and 1.0", r)
}
sm.original2InterpreterRatio = r
- log.Printf("new original-interpreter ratio: '%1.3f'", r)
return nil
}
@@ -300,6 +298,7 @@ func (sm *StateMachine) run() {
}
if oldState != sm.state || oldOriginal2InterpreterRadio != sm.original2InterpreterRatio || oldLanguage != sm.language {
+ log.Printf("update: lang=%s, ratio=%1.3f (%s)", sm.language, sm.original2InterpreterRatio, sm.state)
sm.publishState()
}
}