From 54c63543874ffdd001c5c34a45f2a4367cb8ef12 Mon Sep 17 00:00:00 2001 From: afeiszli Date: Mon, 21 Feb 2022 21:49:08 -0500 Subject: [PATCH] removing logs --- netclient/daemon/macos.go | 46 +++++++++++++++++++------------------- netclient/wireguard/mac.go | 2 -- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/netclient/daemon/macos.go b/netclient/daemon/macos.go index 6ef8b64b..9de874a8 100644 --- a/netclient/daemon/macos.go +++ b/netclient/daemon/macos.go @@ -88,29 +88,29 @@ func CreateMacService(servicename string) error { // MacDaemonString - the file contents for the mac netclient daemon service (launchdaemon) func MacDaemonString() string { return ` - - - - Labelcom.gravitl.netclient - ProgramArguments - - /usr/local/bin/netclient - daemon - - StandardOutPath/etc/netclient/com.gravitl.netclient.log - StandardErrorPath/etc/netclient/com.gravitl.netclient.log - RunAtLoad - - KeepAlive - - AbandonProcessGroup - EnvironmentVariables - - PATH - /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin - - - + + + + Labelcom.gravitl.netclient + ProgramArguments + + /usr/local/bin/netclient + daemon + + StandardOutPath/etc/netclient/com.gravitl.netclient.log + StandardErrorPath/etc/netclient/com.gravitl.netclient.log + RunAtLoad + + KeepAlive + + AbandonProcessGroup + EnvironmentVariables + + PATH + /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin + + + ` } diff --git a/netclient/wireguard/mac.go b/netclient/wireguard/mac.go index 3c60ce2a..ae22530e 100644 --- a/netclient/wireguard/mac.go +++ b/netclient/wireguard/mac.go @@ -3,7 +3,6 @@ package wireguard import ( "bufio" "errors" - "log" "os" "strconv" "strings" @@ -231,7 +230,6 @@ func getConfig(path string) string { func SetMacPeerRoutes(realIface string) error { var err error peerIPs := getPeerIPs(realIface) - log.Println(peerIPs) if len(peerIPs) == 0 { return err }