File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
elastic-utils-lib/src/cmr/elastic_utils/search Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 358358(defn execute-query
359359 " Executes a query to find concepts. Returns concept id, native id, and revision id."
360360 [context query]
361- (let [start (System/currentTimeMillis )
361+ (let [caller-info (try
362+ (let [stack-trace (.getStackTrace (Thread/currentThread ))
363+ caller (when (> (count stack-trace) 2 )
364+ (aget stack-trace 2 ))]
365+ (when caller
366+ (str (.getClassName caller) " /" (.getMethodName caller) " :" (.getLineNumber caller))))
367+ (catch Exception _ " unknown" ))
368+ _ (info " execute-query called from:" caller-info " for concept-type:" (:concept-type query))
369+ start (System/currentTimeMillis )
362370 e-results (if (granule-match-none? query)
363371 (do
364372 (info " This is a granule search with MatchNone condition, skip querying ES." )
You can’t perform that action at this time.
0 commit comments