Replace logDebug with log.Debug

This commit is contained in:
Riccardo Biraghi
2018-04-09 12:45:45 +01:00
parent ab5d7ca1d1
commit ef04949036
2 changed files with 4 additions and 12 deletions

View File

@@ -49,13 +49,13 @@ func signalHandler(qmgr string) chan int {
// End the goroutine
return
case <-reapSignals:
logDebug("Received SIGCHLD signal")
log.Debug("Received SIGCHLD signal")
reapZombies()
case job := <-control:
switch {
case job == startReaping:
// Add SIGCHLD to the list of signals we're listening to
logDebug("Listening for SIGCHLD signals")
log.Debug("Listening for SIGCHLD signals")
signal.Notify(reapSignals, syscall.SIGCHLD)
case job == reapNow:
reapZombies()
@@ -76,6 +76,6 @@ func reapZombies() {
if pid == 0 || err == unix.ECHILD {
return
}
logDebugf("Reaped PID %v", pid)
log.Debugf("Reaped PID %v", pid)
}
}