From 58c7a4885b67367a3527e51834f9503158d28508 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 2 Oct 2018 22:37:07 -0700 Subject: [PATCH] ircd::server: Remove redundant strings; minor cleanup. --- ircd/net.cc | 4 +--- ircd/server.cc | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ircd/net.cc b/ircd/net.cc index dba17e610..b306bf216 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -402,9 +402,7 @@ ircd::net::read_one(socket &socket, // ircd::net::wait_opts -const ircd::net::wait_opts_default -{ -}; +const ircd::net::wait_opts_default; /// Wait for socket to become "ready" using a ctx::future. ircd::ctx::future diff --git a/ircd/server.cc b/ircd/server.cc index b0274c512..834ef7bbb 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -741,7 +741,7 @@ ircd::server::peer::handle_error(link &link, log::derror { - log, "peer(%p) link(%p) [%s]: error: %s", + log, "peer(%p) link(%p) [%s]: %s", this, &link, string(remote), @@ -793,7 +793,7 @@ catch(const std::exception &e) { log::critical { - log, "peer(%p) link(%p) tag(%p) done; error: %s", + log, "peer(%p) link(%p) tag(%p) done; %s", this, &link, &tag, @@ -971,7 +971,7 @@ catch(const std::exception &e) { log::derror { - log, "peer(%p): error: %s", + log, "peer(%p): %s", this, e.what() };