mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 21:49:51 +01:00
feat: query into log comment (#14722)
* add the capture time to see env variable but disabled cos I always have to check what it is * feat: tag query onto log comment
This commit is contained in:
parent
411a8c3be1
commit
9e640bb9eb
@ -14,6 +14,7 @@
|
||||
<env name="PRINT_SQL" value="1" />
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
<env name="SKIP_SERVICE_VERSION_REQUIREMENTS" value="1" />
|
||||
<env name="CAPTURE_TIME_TO_SEE_DATA" value="0" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="$PROJECT_DIR$/env/bin/python" />
|
||||
<option name="SDK_NAME" value="Python 3.10 (posthog)" />
|
||||
|
@ -150,6 +150,9 @@ def process_query(team: Team, query_json: Dict, is_hogql_enabled: bool) -> Dict:
|
||||
# query_json has been parsed by QuerySchemaParser
|
||||
# it _should_ be impossible to end up in here with a "bad" query
|
||||
query_kind = query_json.get("kind")
|
||||
|
||||
tag_queries(query=query_json)
|
||||
|
||||
if query_kind == "EventsQuery":
|
||||
events_query = EventsQuery.parse_obj(query_json)
|
||||
response = run_events_query(query=events_query, team=team)
|
||||
|
Loading…
Reference in New Issue
Block a user