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

Martin Basti mbasti at redhat.com
Wed Jul 8 12:18:58 UTC 2015


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.

-- 
Martin Basti

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mbasti-0278-Fix-logging-in-API.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20150708/e48c4161/attachment.bin>


More information about the Freeipa-devel mailing list