mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Not sure where redis log is coming from, but it should still be recorded.
This commit is contained in:
parent
078ce11034
commit
d767310a31
2 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,7 @@
|
|||
- /srv/newsblur/config/mongodb_keyfile.key:/srv/newsblur/config/mongodb_keyfile.key
|
||||
- /var/log/mongodb/:/var/log/mongodb/
|
||||
- /opt/mongo/newsblur/backup/:/backup/
|
||||
when: (inventory_hostname | regex_replace('[0-9]+', '')) in ['db-mongo', 'db-mongo-secondary']
|
||||
when: (inventory_hostname | regex_replace('[0-9]+', '')) == 'db-mongo-analytics'
|
||||
|
||||
- name: Register mongo in consul
|
||||
tags: consul
|
||||
|
|
|
@ -148,6 +148,8 @@ class SQLLogToConsoleMiddleware:
|
|||
query['sql'] = "~FM%s: %s" % (query['mongo']['collection'], query['mongo']['query'])
|
||||
elif query.get('db_redis'):
|
||||
query['sql'] = "~FC%s" % (query['db_redis']['query'])
|
||||
elif query.get('redis'):
|
||||
query['sql'] = "~FC%s" % (query['redis']['query'])
|
||||
elif query.get('redis_user'):
|
||||
query['sql'] = "~FC%s" % (query['redis_user']['query'])
|
||||
elif query.get('redis_story'):
|
||||
|
|
Loading…
Add table
Reference in a new issue