summaryrefslogtreecommitdiffstats
path: root/bin/updater/owncloud_news_updater/updater.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/updater/owncloud_news_updater/updater.py')
-rw-r--r--bin/updater/owncloud_news_updater/updater.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/updater/owncloud_news_updater/updater.py b/bin/updater/owncloud_news_updater/updater.py
index 1712781e8..e60ef8964 100644
--- a/bin/updater/owncloud_news_updater/updater.py
+++ b/bin/updater/owncloud_news_updater/updater.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-
+import traceback
import json
import threading
import requests
@@ -66,6 +66,7 @@ class Updater:
time.sleep(timeout)
except (Exception) as e:
self.logger.error('%s: Trying again in 30 seconds' % e)
+ traceback.print_exc(file=sys.stderr)
time.sleep(30)
def before_update(self):
@@ -103,6 +104,7 @@ class UpdateThread(threading.Thread):
self.update_feed(feed)
except (Exception) as e:
self.logger.error(e)
+ traceback.print_exc(file=sys.stderr)
def update_feed(self, feed):
raise NotImplementedError