Commit c8fbf2ec authored by Alberto Bertogli's avatar Alberto Bertogli

smtpsrv: Don't consider client EOF an error

When the client closes the connection, which is very common, chasquid
logs it as an error ("exiting with error: EOF").

That can be confusing and mislead users, and also makes a lot of
traces be marked as errored, when nothing wrong occurred.

So this patch changes the log to not treat it as an error.
parent fcbd20cd
Pipeline #128438511 passed with stages
in 9 minutes and 14 seconds
...@@ -280,7 +280,11 @@ loop: ...@@ -280,7 +280,11 @@ loop:
} }
if err != nil { if err != nil {"exiting with error: %v", err) if err == io.EOF {"client closed the connection")
} else {"exiting with error: %v", err)
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment