From 15c6772ff7638e104027f7b7777180e6191841fc Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sat, 23 Jul 2016 12:52:27 +0600 Subject: ALL: Fix debug, warning and error usage Added prefixes, used debug(9). --- backends/cloud/box/boxuploadrequest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backends/cloud/box/boxuploadrequest.cpp') 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); } -- cgit v1.2.3