(config, eventType, overrideChannelId = null)
| 186 | } |
| 187 | |
| 188 | function getLogChannelForEvent(config, eventType, overrideChannelId = null) { |
| 189 | if (overrideChannelId) { |
| 190 | return overrideChannelId; |
| 191 | } |
| 192 | |
| 193 | const category = eventType?.split('.')[0]; |
| 194 | const destination = CATEGORY_DESTINATION[category] || 'audit'; |
| 195 | return resolveLogChannel(config, destination); |
| 196 | } |
| 197 | |
| 198 | export async function logEvent({ |
| 199 | client, |
no test coverage detected