aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientEvent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientEvent.cxx')
-rw-r--r--src/ClientEvent.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ClientEvent.cxx b/src/ClientEvent.cxx
index 90b4a7499..6c86057a1 100644
--- a/src/ClientEvent.cxx
+++ b/src/ClientEvent.cxx
@@ -20,13 +20,12 @@
#include "config.h"
#include "ClientInternal.hxx"
#include "util/Error.hxx"
-
-#include <glib.h>
+#include "Log.hxx"
void
Client::OnSocketError(Error &&error)
{
- g_warning("error on client %d: %s", num, error.GetMessage());
+ FormatError(error, "error on client %d", num);
SetExpired();
}