diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-09 02:37:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-09 02:37:58 +0300 |
commit | 82ed6c45226da8e7324764cc1abeb33b7d36a818 (patch) | |
tree | defdb093b89468afcb31fb3564901076df7779e6 | |
parent | 885f40b84765bdcd5a0dcbdd7af93cf07d713350 (diff) | |
download | manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.gz manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.bz2 manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.xz manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.zip |
Show in log "starting upload" message if uploading started.
-rw-r--r-- | src/net/download.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp index 84d7f47e3..c3b15cd2b 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -186,7 +186,10 @@ void Download::setWriteFunction(WriteFunction write) bool Download::start() { - logger->log("Starting download: %s", mUrl.c_str()); + if (mUpload) + logger->log("Starting upload: %s", mUrl.c_str()); + else + logger->log("Starting download: %s", mUrl.c_str()); mThread = SDL::createThread(&downloadThread, "download", this); if (mThread == nullptr) |