Add doc_events for doctype 'Notification Log' not woking

my file

Config event Notification

Case1: When I add doc_events ‘before_insert’ to the Notification Log doctype in the file it doesn’t work when running enqueue adding a new Notification Log by a matching event in the Notification doctype.
add new doc Test

Notification Log auto add

function test_notification not call

Case 2: When adding Notification Log using desktop, doc_events ‘before_insert’ works normally
add new doc Notification Log

function test_notification has been call

I want the function test_notification to be called in case 1.
Help me, Thanks!

Ah, I see it’s running, so how do I check the doc_events log of doctype Notification Log when it’s run in frappe’s enqueue