mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Moving logging over to the newsblur log.
This commit is contained in:
parent
fca0f68761
commit
df21f2b962
2 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue