Browse Source

feat(nocodb): show error logs if NC_AUTOMATION_LOG_LEVEL is set to ERROR

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
e28fce8661
  1. 7
      packages/nocodb/src/lib/models/HookLog.ts

7
packages/nocodb/src/lib/models/HookLog.ts

@ -39,6 +39,13 @@ export default class HookLog implements HookLogType {
condition: {
fk_hook_id: param.fk_hook_id,
},
...(process.env.NC_AUTOMATION_LOG_LEVEL === 'ERROR' && {
xcCondition: {
error_message: {
neq: null,
},
},
}),
orderBy: {
created_at: 'desc',
},

Loading…
Cancel
Save