Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit dc5ee62

Browse files
xtreme-stevehiehnAndreas Voellmer
authored andcommitted
Remove unused logs
Signed-off-by: Andreas Voellmer <[email protected]>
1 parent a910682 commit dc5ee62

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

acceptance/privileged/cfdev_lifecycle_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ func hasAnalyticsFor(analyticsChan chan string, eventName string, timeout time.D
140140
case <-timeoutChan:
141141
return false
142142
case element := <-analyticsChan:
143-
fmt.Printf("DEBUG: found an event in the channel: %v\n", element)
144143
if element == eventName {
145144
return true
146145
}

cmd/stop/stop.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ func (s *Stop) RunE(cmd *cobra.Command, args []string) error {
100100
reterr = errors.SafeWrap(err, "failed to destroy the VM")
101101
}
102102

103-
fmt.Printf("DEBUG: STOP: ABOUT TO STOP VPNKIT \n")
104103
if err := s.VpnKit.Stop(); err != nil {
105104
reterr = errors.SafeWrap(err, "failed to stop vpnkit")
106105
}

daemon/winsw_windows.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,16 @@ func (w *WinSW) Start(label string) error {
9191
}
9292

9393
func (w *WinSW) Stop(label string) error {
94-
fmt.Printf("DEBUG: ATTEMPTING TO STOP %v\n", label)
95-
9694
var executablePath string
9795
running, _ := w.IsRunning(label)
9896
for running {
99-
fmt.Printf("DEBUG: %v IS RUNNING\n", label)
10097
_, executablePath = getServicePaths(label, w.ServicesDir)
10198

10299
cmd := exec.Command(executablePath, "stop")
103100
err := runCommand(cmd)
104101
if err != nil {
105102
return err
106103
}
107-
fmt.Printf("DEBUG: %v SHOULD HAVE STOPPED\n", executablePath)
108104
time.Sleep(4 * time.Second)
109105
running, _ = w.IsRunning(label)
110106
}
@@ -113,7 +109,6 @@ func (w *WinSW) Stop(label string) error {
113109

114110
func (w *WinSW) IsRunning(label string) (bool, error) {
115111
if !isInstalled(label) {
116-
fmt.Printf("DEBUG: %v IS NOT INSTALLED\n", label)
117112
return false, nil
118113
}
119114

@@ -122,8 +117,6 @@ func (w *WinSW) IsRunning(label string) (bool, error) {
122117

123118
output, err := cmd.Output()
124119

125-
fmt.Printf("DEBUG: STATUS: %v\n", string(output))
126-
127120
if err != nil {
128121
return false, err
129122
}

hypervisor/hyperv.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ func (h *HyperV) Start(vmName string) error {
126126
}
127127

128128
func (h *HyperV) Stop(vmName string) error {
129-
130-
fmt.Printf("DEBUG: ATTEMPTING TO STOP %v \n", vmName)
131-
132129
if exists, err := h.exists(vmName); err != nil {
133130
return err
134131
} else if !exists {
@@ -140,8 +137,6 @@ func (h *HyperV) Stop(vmName string) error {
140137
return fmt.Errorf("stopping vm: %s", err)
141138
}
142139

143-
fmt.Printf("DEBUG: SHOULD HAVE STOPED %v \n", vmName)
144-
145140
return nil
146141
}
147142

0 commit comments

Comments
 (0)