mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-25 07:43:06 -07:00
Remove debug logging from smtpd
This commit is contained in:
6
main.go
6
main.go
@@ -142,8 +142,6 @@ func main() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
logwriter := io.Writer(os.Stdout)
|
||||
|
||||
if *logFile != "" {
|
||||
f, err := os.OpenFile(*logFile, os.O_WRONLY | os.O_CREATE | os.O_APPEND, 0600)
|
||||
if err != nil {
|
||||
@@ -151,8 +149,7 @@ func main() {
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
logwriter = io.MultiWriter(os.Stdout, f)
|
||||
log.SetOutput(logwriter)
|
||||
log.SetOutput(io.MultiWriter(os.Stdout, f))
|
||||
}
|
||||
|
||||
listeners := strings.Split(*listen, " ")
|
||||
@@ -167,7 +164,6 @@ func main() {
|
||||
SenderChecker: senderChecker,
|
||||
RecipientChecker: recipientChecker,
|
||||
Handler: mailHandler,
|
||||
ProtocolLogger: log.New(logwriter, "INBOUND: ", log.Lshortfile),
|
||||
}
|
||||
|
||||
if *allowedUsers != "" {
|
||||
|
||||
Reference in New Issue
Block a user