summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bef60da)
Relocate the warning logged about debug mode from the misc.setup()
function to the Universe class load() method. This way, if debug
mode is enabled in configuration during a live reload event, it will
be logged. Also update the admin documentation to reflect that
enabling or disabling debug can be done with a reload, not only a
restart. Correct a minor spacing error in the configuration docs
too.
and also blocks evaluation of any statement containing double-underscores
(:code:`__`) as well as :code:`lambda` functions. For admins to gain access
to unsafe debugging commands, the ``.mudpy.limit.debug`` option must be
and also blocks evaluation of any statement containing double-underscores
(:code:`__`) as well as :code:`lambda` functions. For admins to gain access
to unsafe debugging commands, the ``.mudpy.limit.debug`` option must be
-enabled in configuration first and the service completely restarted. It
+enabled in configuration first and the service reloaded or restarted. It
should still be considered unsafe, since the engine's file handling
functions could easily alter accessible files or expressions like
``9**9**9`` could be used to hang the service for indeterminate periods.
should still be considered unsafe, since the engine's file handling
functions could easily alter accessible files or expressions like
``9**9**9`` could be used to hang the service for indeterminate periods.
set to false, unsafe debugging functions will be disabled. Be very
careful enabling this feature, as debugging commands may allow service
administrators to run arbitrary shell commands or modify files
set to false, unsafe debugging functions will be disabled. Be very
careful enabling this feature, as debugging commands may allow service
administrators to run arbitrary shell commands or modify files
-accessible to the system user underwhich the service is running.
+accessible to the system user under which the service is running.
element.update_location()
element.clean_contents()
element.update_location()
element.clean_contents()
+ # warn when debug mode has been engaged
+ if self.debug_mode():
+ pending_loglines.append((
+ "WARNING: Unsafe debugging mode is enabled!", 6))
+
# done loading, so disallow updating elements from read-only files
self.loading = False
# done loading, so disallow updating elements from read-only files
self.loading = False
log("Running version: %s" % universe.versions.version, 1)
log("Initial directory: %s" % universe.startdir, 1)
log("Command line: %s" % " ".join(sys.argv), 1)
log("Running version: %s" % universe.versions.version, 1)
log("Initial directory: %s" % universe.startdir, 1)
log("Command line: %s" % " ".join(sys.argv), 1)
- if universe.debug_mode():
- log("WARNING: Unsafe debugging mode is enabled!", 6)
# pass the initialized universe back
return universe
# pass the initialized universe back
return universe