Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log storm queries for .count and .callstorm apis #1857

Merged
merged 2 commits into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions synapse/lib/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ async def eval(self, text, opts=None):
opts = self.core._initStormOpts(opts)
user = self.core._userFromOpts(opts)

self.core._logStormQuery(text, user)

info = {'query': text, 'opts': opts}
await self.core.boss.promote('storm', user=user, info=info)

Expand Down
1 change: 0 additions & 1 deletion synapse/tests/test_lib_storm.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ async def test_storm_movetag(self):

# Test moving a tag to another tag which is a string prefix of the source
async with self.getTestCore() as core:
# core.conf['storm:log'] = True
async with await core.snap() as snap:
node = await snap.addNode('test:str', 'V')
await node.addTag('aaa.b.ccc', (None, None))
Expand Down