1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-03-10 00:48:11 +00:00

feat(sasjs-config): added verbose option

This commit is contained in:
Yury Shkoda
2023-07-31 17:37:39 +03:00
parent ea4b30d6ef
commit 2119c81ebb
5 changed files with 8 additions and 4 deletions

View File

@@ -977,7 +977,7 @@ export default class SASjs {
this.sasjsConfig.serverUrl,
this.sasjsConfig.httpsAgentOptions,
this.sasjsConfig.requestHistoryLimit,
this.sasjsConfig.debug // enable verbose mode if debug is true
this.sasjsConfig.verbose
)
} else {
this.requestClient.setConfig(

View File

@@ -234,7 +234,7 @@ export default class SASjs {
this.sasjsConfig.serverUrl,
this.sasjsConfig.httpsAgentOptions,
this.sasjsConfig.requestHistoryLimit,
this.sasjsConfig.debug // enable verbose mode if debug is true
this.sasjsConfig.verbose
)
} else {
this.requestClient.setConfig(

View File

@@ -11,7 +11,6 @@ import {
import { RequestClient } from '../../request/RequestClient'
import {
isRelativePath,
parseSasViyaDebugResponse,
appendExtraResponseAttributes,
convertToCSV
} from '../../utils'

View File

@@ -45,6 +45,10 @@ export class SASjsConfig {
* Set to `true` to enable additional debugging.
*/
debug: boolean = true
/**
* Set to `true` to enable verbose mode that will log a summary of every HTTP response.
*/
verbose?: boolean = true
/**
* The name of the compute context to use when calling the Viya services directly.
* Example value: 'SAS Job Execution compute context'