CONN-1444: Modified the code to capture inbound Direct message Error in event logs

Modified the code to capture inbound Direct message Error in event logs.