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'.""" """Set the 'key' with 'value'."""
# Sets the "key" with "value" in the config dict # Sets the "key" with "value" in the config dict
if self.config[key] != value: 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 self.config[key] = value
# Run the set_function for this key if any # Run the set_function for this key if any
try: try:
@ -128,7 +128,7 @@ class Config:
# invalid # invalid
try: try:
value = self.config[key] 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 return value
except KeyError: except KeyError:
log.warning("Key does not exist, returning None") log.warning("Key does not exist, returning None")