log if a connection error is a timeout
This commit is contained in:
parent
cd4175c559
commit
a3987a655e
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ class RequestWrapper {
|
|||
log?.catch(err);
|
||||
throw err;
|
||||
} else {
|
||||
if (err.name === "ConnectionError") {
|
||||
log?.set("timeout", err.isTimeout);
|
||||
}
|
||||
log?.catch(err);
|
||||
throw err;
|
||||
}
|
||||
|
|
Reference in a new issue