core: add debug message in hook_process when core debug >= 1