Moving logging over to the newsblur log.

This commit is contained in:
Samuel Clay 2020-12-07 17:37:27 -05:00
parent fca0f68761
commit df21f2b962
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
from newsblur.celeryapp import app
from utils import log as logging
@app.task()
def IndexSubscriptionsForSearch(user_id):
@ -9,6 +10,7 @@ def IndexSubscriptionsForSearch(user_id):
@app.task()
def IndexSubscriptionsChunkForSearch(feed_ids, user_id):
logging.debug(" ---> Indexing: %s for %s" % (feed_ids, user_id))
from apps.search.models import MUserSearch
user_search = MUserSearch.get_user(user_id)

View file

@ -4,6 +4,7 @@ directory=/srv/newsblur
user=sclay
autostart=true
autorestart=true
#redirect_stderr=True
redirect_stderr=True
stdout_logfile=/srv/newsblur/logs/newsblur.log
priority=991
stopsignal=HUP