aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/box/boxuploadrequest.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-23 12:52:27 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit15c6772ff7638e104027f7b7777180e6191841fc (patch)
tree7887ce51ef6c3d6fd7ab574aa0e7da85d47067f8 /backends/cloud/box/boxuploadrequest.cpp
parentd57e0c89b5b20dac247cb2f43450014d84719ba6 (diff)
downloadscummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.tar.gz
scummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.tar.bz2
scummvm-rg350-15c6772ff7638e104027f7b7777180e6191841fc.zip
ALL: Fix debug, warning and error usage
Added prefixes, used debug(9).
Diffstat (limited to 'backends/cloud/box/boxuploadrequest.cpp')
-rw-r--r--backends/cloud/box/boxuploadrequest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/cloud/box/boxuploadrequest.cpp b/backends/cloud/box/boxuploadrequest.cpp
index 29034c479f..f68ba6a580 100644
--- a/backends/cloud/box/boxuploadrequest.cpp
+++ b/backends/cloud/box/boxuploadrequest.cpp
@@ -143,8 +143,9 @@ void BoxUploadRequest::uploadedCallback(Networking::JsonResponse response) {
}
if (error.httpResponseCode != 200 && error.httpResponseCode != 201)
- warning("looks like an error");
+ warning("BoxUploadRequest: looks like an error (bad HTTP code)");
+ //TODO: add more JSON warnings there
Common::JSONValue *json = response.value;
if (json) {
if (json->isObject()) {
@@ -188,10 +189,10 @@ void BoxUploadRequest::uploadedCallback(Networking::JsonResponse response) {
*/
}
- warning("no file info to return");
+ warning("BoxUploadRequest: no file info to return");
finishUpload(StorageFile(_savePath, 0, 0, false));
} else {
- warning("null, not json");
+ warning("BoxUploadRequest: null, not json");
finishError(error);
}