@@ -212,7 +212,7 @@ function userIdForLog(auth) {
212
212
}
213
213
214
214
function logTriggerAfterHook ( triggerType , className , input , auth ) {
215
- const cleanInput = logger . truncateLogMessage ( JSON . stringify ( input ) ) ;
215
+ const cleanInput = logger . cleanAndTruncateLogMessage ( JSON . stringify ( input ) ) ;
216
216
logger . info ( `${ triggerType } triggered for ${ className } for user ${ userIdForLog ( auth ) } :\n Input: ${ cleanInput } ` , {
217
217
className,
218
218
triggerType,
@@ -221,8 +221,8 @@ function logTriggerAfterHook(triggerType, className, input, auth) {
221
221
}
222
222
223
223
function logTriggerSuccessBeforeHook ( triggerType , className , input , result , auth ) {
224
- const cleanInput = logger . truncateLogMessage ( JSON . stringify ( input ) ) ;
225
- const cleanResult = logger . truncateLogMessage ( JSON . stringify ( result ) ) ;
224
+ const cleanInput = logger . cleanAndTruncateLogMessage ( JSON . stringify ( input ) ) ;
225
+ const cleanResult = logger . cleanAndTruncateLogMessage ( JSON . stringify ( result ) ) ;
226
226
logger . info ( `${ triggerType } triggered for ${ className } for user ${ userIdForLog ( auth ) } :\n Input: ${ cleanInput } \n Result: ${ cleanResult } ` , {
227
227
className,
228
228
triggerType,
@@ -231,7 +231,7 @@ function logTriggerSuccessBeforeHook(triggerType, className, input, result, auth
231
231
}
232
232
233
233
function logTriggerErrorBeforeHook ( triggerType , className , input , auth , error ) {
234
- const cleanInput = logger . truncateLogMessage ( JSON . stringify ( input ) ) ;
234
+ const cleanInput = logger . cleanAndTruncateLogMessage ( JSON . stringify ( input ) ) ;
235
235
logger . error ( `${ triggerType } failed for ${ className } for user ${ userIdForLog ( auth ) } :\n Input: ${ cleanInput } \n Error: ${ JSON . stringify ( error ) } ` , {
236
236
className,
237
237
triggerType,
0 commit comments