Skip to content

Commit 2ea3b75

Browse files
[3.14] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (#136749)
gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (cherry picked from commit 28937d3) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
1 parent 76d4a43 commit 2ea3b75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/sys.monitoring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ Registering callback functions
333333
it is unregistered and returned.
334334
Otherwise :func:`register_callback` returns ``None``.
335335

336+
.. audit-event:: sys.monitoring.register_callback func sys.monitoring.register_callback
337+
336338
Functions can be unregistered by calling
337339
``sys.monitoring.register_callback(tool_id, event, None)``.
338340

@@ -343,8 +345,6 @@ globally and locally. As such, if an event could be turned on for both global
343345
and local events by your code then the callback needs to be written to handle
344346
either trigger.
345347

346-
Registering or unregistering a callback function will generate a :func:`sys.audit` event.
347-
348348

349349
Callback function arguments
350350
'''''''''''''''''''''''''''

0 commit comments

Comments
 (0)