mirror of
https://github.com/snobu/destreamer.git
synced 2026-04-14 14:31:47 +00:00
added debug logging
This commit is contained in:
@@ -66,6 +66,13 @@ export class ApiClient {
|
|||||||
'Authorization': 'Bearer ' + this.session?.AccessToken
|
'Authorization': 'Bearer ' + this.session?.AccessToken
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
'[ApiClient.callApi]\n' +
|
||||||
|
'path: ' + path + '\n' +
|
||||||
|
'method: ' + method + '\n' +
|
||||||
|
'payload: ' + payload + '\n'
|
||||||
|
);
|
||||||
|
|
||||||
return this.axiosInstance?.request({
|
return this.axiosInstance?.request({
|
||||||
method: method,
|
method: method,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
@@ -88,6 +95,7 @@ export class ApiClient {
|
|||||||
};
|
};
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
'[ApiClient.callUrl]\n' +
|
||||||
'url: ' + url + '\n' +
|
'url: ' + url + '\n' +
|
||||||
'method: ' + method + '\n' +
|
'method: ' + method + '\n' +
|
||||||
'payload: ' + payload + '\n' +
|
'payload: ' + payload + '\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user