From 8225e6e23956651e6d402ad733953e65651be144 Mon Sep 17 00:00:00 2001 From: epiphyte Date: Fri, 21 Aug 2020 13:43:30 +0000 Subject: [PATCH] log storm queries for .count and .callstorm apis --- synapse/lib/view.py | 2 ++ synapse/tests/test_lib_storm.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/lib/view.py b/synapse/lib/view.py index 0212a99648..4ca6047b6b 100644 --- a/synapse/lib/view.py +++ b/synapse/lib/view.py @@ -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) diff --git a/synapse/tests/test_lib_storm.py b/synapse/tests/test_lib_storm.py index ab326c73c4..b5680f4935 100644 --- a/synapse/tests/test_lib_storm.py +++ b/synapse/tests/test_lib_storm.py @@ -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))