summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/dolmetschctld.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-09 22:03:15 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-09 22:03:15 +0100
commit7672e8d60586129e8f4f9c718d1d62f3c9c0b729 (patch)
tree1245e9010d245d83cbb27eb2e63fe88b62d544e6 /cmd/dolmetschctld/dolmetschctld.go
parentadded telnet control interface (diff)
language selection now returns result
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.")
}