pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0164-DNSSEC-Improve-error-reporting-from-ipa-ods-exporter.patch

e0ab38
From 06df4a281c5e4b2be4840fb42129478279792a9d Mon Sep 17 00:00:00 2001
e0ab38
From: Petr Spacek <pspacek@redhat.com>
e0ab38
Date: Thu, 26 Nov 2015 14:56:00 +0100
e0ab38
Subject: [PATCH] DNSSEC: Improve error reporting from ipa-ods-exporter
e0ab38
e0ab38
https://fedorahosted.org/freeipa/ticket/5348
e0ab38
e0ab38
Reviewed-By: Martin Basti <mbasti@redhat.com>
e0ab38
Reviewed-By: Martin Basti <mbasti@redhat.com>
e0ab38
---
e0ab38
 daemons/dnssec/ipa-ods-exporter | 4 +++-
e0ab38
 1 file changed, 3 insertions(+), 1 deletion(-)
e0ab38
e0ab38
diff --git a/daemons/dnssec/ipa-ods-exporter b/daemons/dnssec/ipa-ods-exporter
e0ab38
index f30a2253a713d857aa4e7566e52a0a45f7bd50c2..12a9294ae05d2ce8d206a2bbf74cc00d81259efa 100755
e0ab38
--- a/daemons/dnssec/ipa-ods-exporter
e0ab38
+++ b/daemons/dnssec/ipa-ods-exporter
e0ab38
@@ -31,6 +31,7 @@ import systemd.daemon
e0ab38
 import systemd.journal
e0ab38
 import sqlite3
e0ab38
 import time
e0ab38
+import traceback
e0ab38
 
e0ab38
 import ipalib
e0ab38
 from ipapython.dn import DN
e0ab38
@@ -576,7 +577,8 @@ try:
e0ab38
             sync_zone(log, ldap, dns_dn, zone_row['name'])
e0ab38
 
e0ab38
 except Exception as ex:
e0ab38
-    msg = "ipa-ods-exporter exception: %s" % ex
e0ab38
+    msg = "ipa-ods-exporter exception: %s" % traceback.format_exc(ex)
e0ab38
+    log.exception(ex)
e0ab38
     raise ex
e0ab38
 
e0ab38
 finally:
e0ab38
-- 
e0ab38
2.4.3
e0ab38