Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

enh: print error reason in the logger

thiswillbeyourgithub234367137ba2
diff --git a/mwmbl/crawl.py b/mwmbl/crawl.py
index c0c8356..a7301d9 100644
--- a/mwmbl/crawl.py
+++ b/mwmbl/crawl.py
@@ -75,8 +75,8 @@ def process_batch_continuously():
while True:
try:
process_batch()
- except Exception:
- logger.exception("Error processing batch")
+ except Exception as err:
+ logger.exception(f"Error processing batch: '{err}'")
time.sleep(10)
@@ -100,8 +100,8 @@ def run_indexing_continuously():
while True:
try:
run_indexing()
- except Exception:
- logger.exception("Error running indexing")
+ except Exception as err:
+ logger.exception(f"Error running indexing: '{err}'")
time.sleep(10)