Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Emit error on server close only if the returned error is not a normal close

天舟25cdd5b0a4da
diff --git a/bin/server/cmd/root.go b/bin/server/cmd/root.go
index 2fc8b31c63..8935a5b021 100644
--- a/bin/server/cmd/root.go
+++ b/bin/server/cmd/root.go
@@ -200,8 +200,8 @@ func start() {
// Execute program.
if err := m.Run(); err != nil {
- m.l.Error(err.Error())
if err != http.ErrServerClosed {
+ m.l.Error(err.Error())
m.Close()
cancel()
}