mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-21 15:16:36 +02:00
Remove redundant logging output (#627)
* Remove redundant logging output
This commit is contained in:
parent
ad0daf2df5
commit
eb04ad5ffa
|
@ -800,23 +800,19 @@ final class OneDriveApi
|
|||
// 503 - Service Unavailable
|
||||
// 504 - Gateway Timeout (Issue #320)
|
||||
case 500:
|
||||
// No actions
|
||||
log.vlog("OneDrive returned a 'HTTP 500 Internal Server Error' - gracefully handling error");
|
||||
// Throw this as a specific exception so this is caught
|
||||
throw new OneDriveException(http.statusLine.code, http.statusLine.reason, response);
|
||||
|
||||
case 502:
|
||||
// No actions
|
||||
log.vlog("OneDrive returned a 'HTTP 502 Bad Gateway Error' - gracefully handling error");
|
||||
// Throw this as a specific exception so this is caught
|
||||
throw new OneDriveException(http.statusLine.code, http.statusLine.reason, response);
|
||||
|
||||
case 503:
|
||||
// No actions
|
||||
log.vlog("OneDrive returned a 'HTTP 503 Service Unavailable Error' - gracefully handling error");
|
||||
// Throw this as a specific exception so this is caught
|
||||
throw new OneDriveException(http.statusLine.code, http.statusLine.reason, response);
|
||||
|
||||
case 504:
|
||||
// No actions
|
||||
log.vlog("OneDrive returned a 'HTTP 504 Gateway Timeout Error' - gracefully handling error");
|
||||
// Throw this as a specific exception so this is caught
|
||||
throw new OneDriveException(http.statusLine.code, http.statusLine.reason, response);
|
||||
|
||||
// Default - all other errors that are not a 2xx or a 302
|
||||
|
|
Loading…
Reference in a new issue