diff options
Diffstat (limited to 'src/socket_clients.cpp')
-rw-r--r-- | src/socket_clients.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/socket_clients.cpp b/src/socket_clients.cpp index e9c756d76..4f118afa2 100644 --- a/src/socket_clients.cpp +++ b/src/socket_clients.cpp @@ -1,12 +1,20 @@ /* + * Anope IRC Services * - * (C) 2003-2017 Anope Team - * Contact us at team@anope.org + * Copyright (C) 2011-2017 Anope Team <team@anope.org> * - * Please read COPYING and README for further details. + * This file is part of Anope. Anope is free software; you can + * redistribute it and/or modify it under the terms of the GNU + * General Public License as published by the Free Software + * Foundation, version 2. * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see see <http://www.gnu.org/licenses/>. */ #include "services.h" @@ -34,7 +42,7 @@ bool ConnectionSocket::Process() } catch (const SocketException &ex) { - Log() << ex.GetReason(); + Anope::Logger.Log(ex.GetReason()); } return false; } @@ -54,7 +62,7 @@ void ConnectionSocket::OnConnect() void ConnectionSocket::OnError(const Anope::string &error) { - Log(LOG_DEBUG) << "Socket error: " << error; + Anope::Logger.Debug("Socket error: {0}", error); } ClientSocket::ClientSocket(ListenSocket *l, const sockaddrs &addr) : ls(l), clientaddr(addr) @@ -74,7 +82,7 @@ bool ClientSocket::Process() } catch (const SocketException &ex) { - Log() << ex.GetReason(); + Anope::Logger.Log(ex.GetReason()); } return false; } @@ -94,5 +102,6 @@ void ClientSocket::OnAccept() void ClientSocket::OnError(const Anope::string &error) { - Log(LOG_DEBUG) << "Socket error: " << error; + Anope::Logger.Debug("Socket error: {0}", error); } + |