Update onedrive.d for additional debug logging (#238)

* In case the user does not use the --verbose tag, if we are doing --https-debug we want this printed to the console
This commit is contained in:
abraunegg 2018-11-18 07:05:01 +11:00 committed by GitHub
parent aeee9c8d16
commit eaedfac34a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ final class OneDriveApi
auto response = perform();
checkHttpCode(response);
if (.debugResponse){
log.vlog("OneDrive API Response: ", response);
writeln("OneDrive API Response: ", response);
}
return response;
}
@ -481,7 +481,7 @@ final class OneDriveApi
content ~= data;
// HTTP Server Response Code Debugging
if (.debugResponse){
log.vlog("OneDrive HTTP Server Response: ", http.statusLine.code);
writeln("OneDrive HTTP Server Response: ", http.statusLine.code);
}
return data.length;