summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/dolmetschctld.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dolmetschctld/dolmetschctld.go')
-rw-r--r--cmd/dolmetschctld/dolmetschctld.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/dolmetschctld/dolmetschctld.go b/cmd/dolmetschctld/dolmetschctld.go
index 0f6793b..45536e8 100644
--- a/cmd/dolmetschctld/dolmetschctld.go
+++ b/cmd/dolmetschctld/dolmetschctld.go
@@ -60,11 +60,15 @@ func main() {
defer sm.Shutdown()
var telnet *TelnetInterface
- if telnet, err = NewTelnetInterface(sm); err != nil {
+ if telnet, err = NewTelnetInterface("127.0.0.1:1234", sm); err != nil {
log.Printf("creating telnet control interface failed: %v", err)
os.Exit(1)
}
- telnet.Run()
+ log.Printf("telnet interface successfully initialized!")
+
+ if err = telnet.Run(); err != nil {
+ log.Printf("running telnet interface failed: %v", err)
+ }
log.Printf("exiting.")
}