Skip to content

Commit 28937d3

Browse files
gh-136697: Use the standard audit event format for sys.monitoring docs (#136747)
1 parent eddc8c0 commit 28937d3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy