added logLevel to cmdline, moved pesky info lines to debug

This commit is contained in:
amit b
2018-10-19 07:55:16 +03:00
parent 931b08376b
commit e03c85f7ab
8 changed files with 36 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ func main() {
var targetVncHost = flag.String("targHost", "localhost", "target vnc hostname")
flag.Parse()
logger.SetLogLevel(*logLevel)
if *targetVncHost == "" {
logger.Error("no target vnc server host defined")