fix(sqllab): log exceptions caused by the user as debug and not error (#10676)

This commit is contained in:
ʈᵃᵢ
2020-08-25 14:35:50 -07:00
committed by GitHub
parent 4b40d44b5c
commit fe574fdaa7

View File

@@ -183,7 +183,6 @@ def get_sql_results( # pylint: disable=too-many-arguments
log_params=log_params,
)
except Exception as ex: # pylint: disable=broad-except
logger.error("Query %d", query_id)
logger.debug("Query %d: %s", query_id, ex)
stats_logger.incr("error_sqllab_unhandled")
query = get_query(query_id, session)