mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Added missing import.
Removed log message that caused error. It was never logged anyway, even on the master branch before the improved logging branch was created.
This commit is contained in:
parent
2fa8ca6753
commit
5841521133
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,6 @@ class _ConfigManager:
|
|||
return self.__config_directory
|
||||
|
||||
def __del__(self):
|
||||
log.debug("ConfigManager stopping..")
|
||||
del self.config_files
|
||||
|
||||
def set_config_dir(self, directory):
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
"""Logging functions"""
|
||||
|
||||
import os
|
||||
import logging
|
||||
import inspect
|
||||
import logging
|
||||
from deluge import common
|
||||
from twisted.internet import defer
|
||||
from twisted.python.log import PythonLoggingObserver
|
||||
|
@ -155,6 +155,7 @@ def setupLogger(level="error", filename=None, filemode="w"):
|
|||
delay=0
|
||||
)
|
||||
elif filename and filemode=='w':
|
||||
import logging.handlers
|
||||
handler = getattr(
|
||||
logging.handlers, 'WatchedFileHandler', logging.FileHandler)(
|
||||
filename, filemode, 'utf-8', delay=0
|
||||
|
|
Loading…
Add table
Reference in a new issue