[Freeipa-devel] [PATCH 0278] Fix API logging

Tomas Babej tbabej at redhat.com
Wed Jul 8 15:11:40 UTC 2015



On 07/08/2015 02:18 PM, Martin Basti wrote:
> log must be initilized before first usage in API, otherwise traceback is
> shown:
> 
> # ipa -e random-nonexistent-key=1 user-find
> Traceback (most recent call last):
>   File "/bin/ipa", line 32, in <module>
>     cli.run(api)
>   File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1346, in run
>     api.log.exception('%s: %s', e.__class__.__name__, str(e))
> AttributeError: 'API' object has no attribute 'log'
> 
> Patch attached.
> 
> 
> 

ACK.

Pushed to master: e51bb1bc668bf3008c8cca1dcbb0ebda7fa5c703




More information about the Freeipa-devel mailing list