Browse Source

add logging

Matthew R. Kasun 3 years ago
parent
commit
f969e38f77
1 changed files with 2 additions and 1 deletions
  1. 2 1
      netclient/daemon/freebsd.go

+ 2 - 1
netclient/daemon/freebsd.go

@@ -104,7 +104,8 @@ netclient_args="daemon"`
 }
 
 func FreebsdDaemon(command string) {
-	_, err := ncutils.RunCmd(fmt.Sprintf("service netclient %s", command), true)
+	out, err := ncutils.RunCmd(fmt.Sprintf("service netclient %s", command), true)
+	ncutils.Log("output from RunCmd " + out)
 	ncutils.Log("error from RunCmd " + err.Error())
 }