Commit a5077876 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Wipe logger add_file_logger

parent e9db8806
......@@ -44,15 +44,13 @@ from objpool.http import PooledHTTPConnection
from kamaki import logger
LOG_FILE = logger.get_log_filename()
TIMEOUT = 60.0 # seconds
HTTP_METHODS = ['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'COPY', 'MOVE']
log = logger.add_file_logger(__name__)
log.debug('Logging location: %s' % logger.get_log_filename())
sendlog = logger.add_file_logger('clients.send')
recvlog = logger.add_file_logger('clients.recv')
sendlog = logger.add_file_logger('%s.send' % __name__)
recvlog = logger.add_file_logger('%s.recv' % __name__)
def _encode(v):
......
......@@ -66,7 +66,7 @@ def _add_logger(name, level=None, filename=None, fmt=None):
return get_logger(name)
def add_file_logger(name, level=None, prefix='', filename=None):
def add_file_logger(name, level=None, filename=None):
try:
return _add_logger(
name, level, filename or get_log_filename(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment