mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-02-05 21:18:12 +00:00
Added debug logs to api and gw errors
This commit is contained in:
parent
0097541062
commit
ddadfdf3e4
|
@ -34,7 +34,7 @@ class API{
|
|||
timeout: 30000
|
||||
}).json()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
console.debug("[ERROR] deezer.api", method, args, e.message)
|
||||
await new Promise(r => setTimeout(r, 2000)) // sleep(2000ms)
|
||||
return this.api_call(method, args)
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ class GW{
|
|||
timeout: 30000
|
||||
}).json()
|
||||
}catch (e){
|
||||
console.log(e)
|
||||
console.debug("[ERROR] deezer.gw", method, args, e.message)
|
||||
await new Promise(r => setTimeout(r, 2000)) // sleep(2000ms)
|
||||
return this.api_call(method, args, params)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue