Fix config debug output.

This commit is contained in:
Andrew Resch 2007-10-06 17:31:48 +00:00
parent 8f6029219d
commit 7fe0392c90

View File

@ -113,7 +113,7 @@ class Config:
"""Set the 'key' with 'value'."""
# Sets the "key" with "value" in the config dict
if self.config[key] != value:
log.debug("Setting '%s' to %s of type %s", key, type(value), value)
log.debug("Setting '%s' to %s of %s", key, value, type(value))
self.config[key] = value
# Run the set_function for this key if any
try:
@ -128,7 +128,7 @@ class Config:
# invalid
try:
value = self.config[key]
log.debug("Getting '%s' as %s of type %s", key, value, type(value))
log.debug("Getting '%s' as %s of %s", key, value, type(value))
return value
except KeyError:
log.warning("Key does not exist, returning None")