summaryrefslogtreecommitdiff
path: root/src/net/download.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-14 01:08:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-14 01:08:04 +0300
commitc169dbdd1fc14f66890dcb6fba7ecf543067875d (patch)
treed39bf9211d34f13a2c0f2953dc1896c563f31bd1 /src/net/download.cpp
parent8e4f4e04ca61594e3dec31bad70eaf6cdf86ad8f (diff)
downloadmanaverse-c169dbdd1fc14f66890dcb6fba7ecf543067875d.tar.gz
manaverse-c169dbdd1fc14f66890dcb6fba7ecf543067875d.tar.bz2
manaverse-c169dbdd1fc14f66890dcb6fba7ecf543067875d.tar.xz
manaverse-c169dbdd1fc14f66890dcb6fba7ecf543067875d.zip
Use thread safe logging in threads.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r--src/net/download.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index e9b6dd6d7..d986fa232 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -302,7 +302,7 @@ int Download::downloadThread(void *ptr)
{
if (d->mError)
{
- logger->log("curl error %d: %s host: %s",
+ logger->log_r("curl error %d: %s host: %s",
res, d->mError, d->mUrl.c_str());
}
break;
@@ -347,7 +347,7 @@ int Download::downloadThread(void *ptr)
// Remove the corrupted file
::remove(d->mFileName.c_str());
- logger->log("Checksum for file %s failed: (%lx/%lx)",
+ logger->log_r("Checksum for file %s failed: (%lx/%lx)",
d->mFileName.c_str(),
adler, d->mAdler);
attempts++;