plugins/python/example_debugging: fix typo in comment
This commit is contained in:

committed by
Todd C. Miller

parent
1093e7bc4b
commit
8eab169098
@@ -41,7 +41,7 @@ class DebugDemoPlugin(sudo.Plugin):
|
|||||||
def __init__(self, plugin_options, **kwargs):
|
def __init__(self, plugin_options, **kwargs):
|
||||||
# Specify: "py_calls@info" debug option to show the call to this constructor and the arguments passed in
|
# Specify: "py_calls@info" debug option to show the call to this constructor and the arguments passed in
|
||||||
|
|
||||||
# Specifying "plugin@error" debug option will show this message (or any more verbose level)
|
# Specifying "plugin@err" debug option will show this message (or any more verbose level)
|
||||||
sudo.debug(sudo.DEBUG_ERROR, "My demo purpose plugin shows this ERROR level debug message")
|
sudo.debug(sudo.DEBUG_ERROR, "My demo purpose plugin shows this ERROR level debug message")
|
||||||
|
|
||||||
# Specifying "plugin@info" debug option will show this message (or any more verbose level)
|
# Specifying "plugin@info" debug option will show this message (or any more verbose level)
|
||||||
@@ -53,6 +53,6 @@ class DebugDemoPlugin(sudo.Plugin):
|
|||||||
# Dec 5 15:19:19 sudo[123040] My demo purpose plugin shows this ERROR level debug message
|
# Dec 5 15:19:19 sudo[123040] My demo purpose plugin shows this ERROR level debug message
|
||||||
|
|
||||||
# Specify: "c_calls@diag" debug option to show this call and its arguments
|
# Specify: "c_calls@diag" debug option to show this call and its arguments
|
||||||
# If you specify info debug level instead ("c_call@info"),
|
# If you specify info debug level instead ("c_calls@info"),
|
||||||
# you will also see the python function and line from which you called the 'options_as_dict' function.
|
# you will also see the python function and line from which you called the 'options_as_dict' function.
|
||||||
self.plugin_options = sudo.options_as_dict(plugin_options)
|
self.plugin_options = sudo.options_as_dict(plugin_options)
|
||||||
|
Reference in New Issue
Block a user