mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 07:33:31 +00:00
Fix config debug output.
This commit is contained in:
parent
8f6029219d
commit
7fe0392c90
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user