mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-04 15:02:25 +02:00
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:
parent
aeee9c8d16
commit
eaedfac34a
|
@ -330,7 +330,7 @@ final class OneDriveApi
|
||||||
auto response = perform();
|
auto response = perform();
|
||||||
checkHttpCode(response);
|
checkHttpCode(response);
|
||||||
if (.debugResponse){
|
if (.debugResponse){
|
||||||
log.vlog("OneDrive API Response: ", response);
|
writeln("OneDrive API Response: ", response);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -481,7 +481,7 @@ final class OneDriveApi
|
||||||
content ~= data;
|
content ~= data;
|
||||||
// HTTP Server Response Code Debugging
|
// HTTP Server Response Code Debugging
|
||||||
if (.debugResponse){
|
if (.debugResponse){
|
||||||
log.vlog("OneDrive HTTP Server Response: ", http.statusLine.code);
|
writeln("OneDrive HTTP Server Response: ", http.statusLine.code);
|
||||||
}
|
}
|
||||||
|
|
||||||
return data.length;
|
return data.length;
|
||||||
|
|
Loading…
Reference in a new issue