Log missing file inclusions as more severe
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 29 Jul 2017 18:31:40 +0000 (18:31 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 29 Jul 2017 18:31:40 +0000 (18:31 +0000)
When another file is included with an inc macro in text, being
unable to load that file could indicate a fairly serious
configuration error. Increase the severity of the log message for
this so that it will be more easily noticed and caught in testing.

mudpy/misc.py

index f57fec3..1d2ffff 100644 (file)
@@ -1307,7 +1307,7 @@ def replace_macros(user, text, is_input=False):
                 replacement = replacement[:-2]
             else:
                 replacement = ""
-                log("Couldn't read included " + incfile + " file.", 6)
+                log("Couldn't read included " + incfile + " file.", 7)
 
         # if we get here, log and replace it with null
         else: