summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-03-02 22:31:29 +0000
committerSadie Powell <sadie@witchery.services>2021-03-02 22:31:29 +0000
commit27f8e788c2a515f63f1f0e5e2b4b0d5e78c3dab4 (patch)
treebefe2044739948f47b91e7aed940cd437c68d41b /src/configreader.cpp
parentd45b43256f2753e893d337839a9207a6d7d1c4f6 (diff)
Fix using std::cout instead of errstr when a port fails to bind.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 304dc3705..fa9bbf105 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -527,7 +527,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
ServerInstance->BindPorts(pl);
if (!pl.empty())
{
- std::cout << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl;
+ errstr << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl;
for (FailedPortList::const_iterator iter = pl.begin(); iter != pl.end(); ++iter)
{
const FailedPort& fp = *iter;