binarydud/pyres — Issue #84: Invalid arguments for get_logging_handler in Horde.py
Author: srounet
Created: 2011-10-24 12:22:27+00:00
State: open

Calling get_logging_handler with bad arguments in setup_logging (horde.py)

```python
def setup_logging(procname, namespace='', log_level=logging.INFO, log_file=None):
[...]
handler = get_logging_handler(procname, log_file, namespace)
[...]
```

Correct signature is:

```python
def get_logging_handler(filename, procname, namespace=None):
```

Should be:

```python
def setup_logging(procname, namespace='', log_level=logging.INFO, log_file=None):
[...]
handler = get_logging_handler(log_file, procname, namespace)
[...]
```