summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-06-03 15:13:44 -0600
committerJared Adams <jaxad0127@gmail.com>2010-06-03 15:16:45 -0600
commit18c1842f1e566390b4d93c94628db49c4895c881 (patch)
tree2f5e6a153e1a84cad4aa2193a30440f9922663c2 /src
parent27bd3d3b5181b6192eb094a865e1821883d73eb4 (diff)
downloadmana-18c1842f1e566390b4d93c94628db49c4895c881.tar.gz
mana-18c1842f1e566390b4d93c94628db49c4895c881.tar.bz2
mana-18c1842f1e566390b4d93c94628db49c4895c881.tar.xz
mana-18c1842f1e566390b4d93c94628db49c4895c881.zip
Cleanup some logging statements
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src')
-rw-r--r--src/gui/serverdialog.cpp8
-rw-r--r--src/net/download.cpp4
2 files changed, 3 insertions, 9 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 3fdbd583..f0688d6a 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -528,7 +528,7 @@ void ServerDialog::loadServers()
// Ignore unknown server types
if (server.type == ServerInfo::UNKNOWN)
{
- logger->log("Ignoring server entry with unknown type: %s\n",
+ logger->log("Ignoring server entry with unknown type: %s",
type.c_str());
continue;
}
@@ -547,12 +547,6 @@ void ServerDialog::loadServers()
else
version = strprintf(_("requires v%s"), version.c_str());
- if (server.type == ServerInfo::UNKNOWN)
- {
- logger->log("Unknown server type: %s", type.c_str());
- continue;
- }
-
for_each_xml_child_node(subNode, serverNode)
{
if (xmlStrEqual(subNode->name, BAD_CAST "connection"))
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 2b96a6b9..a2cd4910 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -122,7 +122,7 @@ void Download::setWriteFunction(WriteFunction write)
bool Download::start()
{
- logger->log("Starting download: %s\n", mUrl.c_str());
+ logger->log("Starting download: %s", mUrl.c_str());
mThread = SDL_CreateThread(downloadThread, this);
@@ -140,7 +140,7 @@ bool Download::start()
void Download::cancel()
{
- logger->log("Canceling download: %s\n", mUrl.c_str());
+ logger->log("Canceling download: %s", mUrl.c_str());
mOptions.cancel = true;
if (mThread && SDL_GetThreadID(mThread) != 0)