mirror of
https://github.com/sasjs/adapter.git
synced 2026-06-10 18:50:22 +00:00
feat(debug): add viya debug log parser - parse JSON from inline blob
This commit is contained in:
@@ -16,6 +16,7 @@ import { SASViyaApiClient } from '../SASViyaApiClient'
|
||||
import {
|
||||
isRelativePath,
|
||||
parseSasViyaDebugResponse,
|
||||
parseSasViyaLogDebugResponse,
|
||||
appendExtraResponseAttributes,
|
||||
parseWeboutResponse,
|
||||
getFormData,
|
||||
@@ -188,11 +189,14 @@ export class WebJobExecutor extends BaseJobExecutor {
|
||||
if (config.debug) {
|
||||
switch (this.serverType) {
|
||||
case ServerType.SasViya:
|
||||
jsonResponse = await parseSasViyaDebugResponse(
|
||||
res.result,
|
||||
this.requestClient,
|
||||
this.serverUrl
|
||||
)
|
||||
jsonResponse =
|
||||
config.useComputeApi === null && config.runAsTask === true
|
||||
? await parseSasViyaLogDebugResponse(res.result)
|
||||
: await parseSasViyaDebugResponse(
|
||||
res.result,
|
||||
this.requestClient,
|
||||
this.serverUrl
|
||||
)
|
||||
break
|
||||
case ServerType.Sas9:
|
||||
jsonResponse =
|
||||
|
||||
Reference in New Issue
Block a user