mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-15 20:26:53 +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();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue