<#secure method=pgpmime mode=sign>

I have following advice code:

(defun my/org-add-note--auto-add-tag ()
  "Auto add tag 'LOG' when add note log."
  (org-back-to-heading)
  ;; DEBUG: the following code is not executed.
  (message "DEBUG")
  (require 'seq)
  (org-set-tags (seq-uniq (cons "LOG" (org-get-tags nil t)))))

(advice-add 'org-add-note :after #'my/org-add-note--auto-add-tag)

With Emacs Edebug, I found it only executed to (org-back-to-heading), then stopped. The following "DEBUG" message is not printed and tag "LOG" is not added.

Does anybody have some clue for this issue?