diff options
author | Petr Spacek <pspacek@redhat.com> | 2015-11-26 14:56:00 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-01-07 14:13:23 +0100 |
commit | 9bcb9887eab496a98a46c149c93c517c5dcb99c7 (patch) | |
tree | 2e63a75f6655e9a8f4dbe0a3fcbff62f9e104650 /daemons | |
parent | 6ac3553dde63f7d2dfab5f0118ca833b049f734b (diff) | |
download | freeipa-9bcb9887eab496a98a46c149c93c517c5dcb99c7.tar.gz freeipa-9bcb9887eab496a98a46c149c93c517c5dcb99c7.tar.xz freeipa-9bcb9887eab496a98a46c149c93c517c5dcb99c7.zip |
DNSSEC: Improve error reporting from ipa-ods-exporter
https://fedorahosted.org/freeipa/ticket/5348
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'daemons')
-rwxr-xr-x | daemons/dnssec/ipa-ods-exporter | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemons/dnssec/ipa-ods-exporter b/daemons/dnssec/ipa-ods-exporter index 403ba0555..81b7e9621 100755 --- a/daemons/dnssec/ipa-ods-exporter +++ b/daemons/dnssec/ipa-ods-exporter @@ -30,6 +30,7 @@ import sys import systemd.daemon import systemd.journal import sqlite3 +import traceback import ipalib from ipapython.dn import DN @@ -571,7 +572,8 @@ try: sync_zone(log, ldap, dns_dn, zone_row['name']) except Exception as ex: - msg = "ipa-ods-exporter exception: %s" % ex + msg = "ipa-ods-exporter exception: %s" % traceback.format_exc(ex) + log.exception(ex) raise ex finally: |