mirror of
https://github.com/snobu/destreamer.git
synced 2026-01-17 13:32:16 +00:00
changed UserAgent version
added debug logging
This commit is contained in:
@@ -15,7 +15,7 @@ export class ApiClient {
|
||||
this.axiosInstance = axios.create({
|
||||
baseURL: session?.ApiGatewayUri,
|
||||
// timeout: 7000,
|
||||
headers: { 'User-Agent': 'destreamer/2.0 (Hammer of Dawn)' }
|
||||
headers: { 'User-Agent': 'destreamer/3.0 (beta)' }
|
||||
});
|
||||
|
||||
axiosRetry(this.axiosInstance, {
|
||||
@@ -86,6 +86,13 @@ export class ApiClient {
|
||||
'Authorization': 'Bearer ' + this.session?.AccessToken
|
||||
};
|
||||
|
||||
logger.debug(
|
||||
'url: ' + url + '\n' +
|
||||
'method: ' + method + '\n' +
|
||||
'payload: ' + payload + '\n' +
|
||||
'responseType: ' + responseType + '\n'
|
||||
);
|
||||
|
||||
return this.axiosInstance?.request({
|
||||
method: method,
|
||||
headers: headers,
|
||||
|
||||
Reference in New Issue
Block a user