Skip to content

Commit 9603335

Browse files
committed
🔊 change delegated crm error logging to warn logging
1 parent 23f5f8e commit 9603335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/error.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
IntegrationErrorType,
55
ServerError,
66
} from '../models';
7-
import { errorLogger } from './logger.util';
7+
import { errorLogger, warnLogger } from './logger.util';
88

99
export const throwAndDelegateError = (
1010
error: AxiosError | DelegateToFrontedError | ServerError | Error,
@@ -69,9 +69,9 @@ export const throwAndDelegateError = (
6969
}
7070

7171
if (errorType !== undefined) {
72-
errorLogger(
72+
warnLogger(
7373
'throwAndDelegateError',
74-
`Delegating error to frontend with code ${DELEGATE_TO_FRONTEND_CODE} and type ${errorType}`,
74+
`Delegating crm error to frontend with code ${DELEGATE_TO_FRONTEND_CODE} and type ${errorType}`,
7575
apiKey,
7676
);
7777
throw new ServerError(DELEGATE_TO_FRONTEND_CODE, errorType);

0 commit comments

Comments
 (0)