Skip to content

Commit 4e9772d

Browse files
SK-3043 TEST RELEASE
1 parent d37b25d commit 4e9772d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/utils/logs/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const logs = {
181181
DETECT_REQUEST_RESOLVED: 'Detect request is resolved.',
182182
DEIDENTIFY_FILE_REQUEST_REJECTED: 'Deidentify file resulted in failure.',
183183
POLL_DETECT_FILE_FAILED: 'Deidentify file run %s1 failed. Reason: %s2.',
184-
POLL_DETECT_FILE_UNEXPECTED_STATUS: 'Deidentify file run %s1 returned unexpected status: %s2. Message: %s3.',
184+
POLL_DETECT_FILE_UNEXPECTED_STATUS: 'Deidentify file run %s1 returned unexpected status: %s2. Response: %s3',
185185
POLL_DETECT_FILE_API_ERROR: 'Polling for deidentify file run %s1 failed with an API error: %s2.',
186186
DETECT_RUN_REQUEST_REJECTED: 'Detect get run resulted in failure.',
187187
DEIDENTIFY_TEXT_REQUEST_REJECTED: 'Deidentify text resulted in failure.',

‎src/vault/controller/detect/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class DetectController {
341341
const poll = () => {
342342
this.client.filesAPI.getRun(runId, req)
343343
.then((response: DeidentifyStatusResponse) => {
344+
console.log("Polling response:", response); // Log the entire response for debugging
344345
printLog(
345346
parameterizedString(logs.infoLogs.POLL_DETECT_FILE_STATUS, runId, response.status),
346347
MessageType.LOG,
@@ -391,7 +392,7 @@ class DetectController {
391392
reject(new SkyflowError(SKYFLOW_ERROR_CODE.INTERNAL_SERVER_ERROR, [response.message]));
392393
} else {
393394
printLog(
394-
parameterizedString(logs.errorLogs.POLL_DETECT_FILE_UNEXPECTED_STATUS, runId, response.status ?? 'undefined', response.message ?? 'No message provided by the server.'),
395+
parameterizedString(logs.errorLogs.POLL_DETECT_FILE_UNEXPECTED_STATUS, runId, response.status ?? 'undefined', JSON.stringify(response)),
395396
MessageType.ERROR,
396397
this.client.getLogLevel(),
397398
);

0 commit comments

Comments
 (0)