1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-09 05:20:05 +00:00

fix(debug): propagate debug value from SASjs config

This commit is contained in:
Krishna Acondy
2020-10-03 16:53:00 +01:00
parent ee30ab195f
commit 354443c98b
3 changed files with 39 additions and 82 deletions

View File

@@ -209,9 +209,7 @@ export default class SASjs {
fileName: string,
linesOfCode: string[],
contextName: string,
accessToken?: string,
sessionId = '',
silent = false
accessToken?: string
) {
this.isMethodSupported('executeScriptSASViya', ServerType.SASViya)
@@ -220,9 +218,7 @@ export default class SASjs {
linesOfCode,
contextName,
accessToken,
silent,
null,
this.sasjsConfig.debug
null
)
}
@@ -410,6 +406,9 @@ export default class SASjs {
*/
public setDebugState(value: boolean) {
this.sasjsConfig.debug = value
if (this.sasViyaApiClient) {
this.sasViyaApiClient.debug = value
}
}
/**
@@ -635,6 +634,7 @@ export default class SASjs {
this.sasjsConfig.contextName,
this.setCsrfTokenApi
)
sasApiClient.debug = this.sasjsConfig.debug
} else if (this.sasjsConfig.serverType === ServerType.SAS9) {
sasApiClient = new SAS9ApiClient(serverUrl)
}
@@ -1352,6 +1352,8 @@ export default class SASjs {
this.sasjsConfig.contextName,
this.setCsrfTokenApi
)
this.sasViyaApiClient.debug = this.sasjsConfig.debug
}
if (this.sasjsConfig.serverType === ServerType.SAS9) {
if (this.sas9ApiClient)