diff options
Diffstat (limited to 'pythonmod/examples')
| -rw-r--r-- | pythonmod/examples/edns.py | 2 | ||||
| -rw-r--r-- | pythonmod/examples/inplace_callbacks.py | 2 | ||||
| -rw-r--r-- | pythonmod/examples/log.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pythonmod/examples/edns.py b/pythonmod/examples/edns.py index ddcccc51c9bd..4e2eebd4fd1d 100644 --- a/pythonmod/examples/edns.py +++ b/pythonmod/examples/edns.py @@ -80,7 +80,7 @@ def init_standard(id, env): ..note:: The previously accessible configuration options can now be found in env.cfg. """ - log_info("python: inited script {}".format(env.cfg.python_script)) + log_info("python: inited script {}".format(mod_env['script'])) # Register EDNS option 65001 as a known EDNS option. if not register_edns_option(env, 65001, bypass_cache_stage=True, diff --git a/pythonmod/examples/inplace_callbacks.py b/pythonmod/examples/inplace_callbacks.py index e1caaecc74e7..42806daa107a 100644 --- a/pythonmod/examples/inplace_callbacks.py +++ b/pythonmod/examples/inplace_callbacks.py @@ -287,7 +287,7 @@ def init_standard(id, env): env.cfg. """ - log_info("python: inited script {}".format(env.cfg.python_script)) + log_info("python: inited script {}".format(mod_env['script'])) # Register the inplace_reply_callback function as an inplace callback # function when answering a resolved query. diff --git a/pythonmod/examples/log.py b/pythonmod/examples/log.py index c17106b0f268..03f741962644 100644 --- a/pythonmod/examples/log.py +++ b/pythonmod/examples/log.py @@ -87,7 +87,7 @@ def logDnsMsg(qstate): print "-"*100 def init(id, cfg): - log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script)) + log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, mod_env['script'])) return True def deinit(id): |
