Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Use stdout for faulthandler

Daoud Clarked5961a679215
diff --git a/mwmbl/apps.py b/mwmbl/apps.py
index 45b9403..518ae0b 100644
--- a/mwmbl/apps.py
+++ b/mwmbl/apps.py
@@ -1,4 +1,5 @@
import faulthandler
+import sys
from multiprocessing import Process, Queue
from pathlib import Path
@@ -22,7 +23,7 @@ class MwmblConfig(AppConfig):
from mwmbl.tinysearchengine.indexer import TinyIndex, Document, PAGE_SIZE
from mwmbl.url_queue import update_queue_continuously
- faulthandler.enable()
+ faulthandler.enable(file=sys.stdout)
index_path = Path(settings.DATA_PATH) / INDEX_NAME
try: