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

CMR-10023: Part 2 Reduce Search Logs #2156

Merged
merged 8 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[cmr.elastic-utils.search.query-execution :as qe]
[cmr.common.services.search.query-model :as qm]
[cmr.common.api.context :as context-util]
[cmr.common.util :as util]
[cmr.search.services.acls.acl-helper :as acl-helper]
[cmr.transmit.config :as tc]))

Expand Down
2 changes: 1 addition & 1 deletion search-app/src/cmr/search/services/association_service.clj
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
:source-concept-type concept-type})
operation))
associations))]
(info "update-associations:" t1)
(debug "update-associations:" t1)
result))

(defn- fetch-concept
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
:source-revision-id revision-id})
operation))
associations))]
(info "update-generic-associations:" t1)
(debug "update-generic-associations:" t1)
result))

(defn- link-to-concepts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
[cmr.common.services.search.query-model :as cqm]
[cmr.common.concepts :as cc]
[cmr.common.date-time-parser :as parser]
[cmr.common.services.errors :as errors]
[cmr.common.util :as util]
[cmr.search.models.query :as qm]
[cmr.search.services.parameters.legacy-parameters :as lp]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
[cmr.spatial.polygon :as poly]
[cmr.spatial.point :as point]
[cmr.spatial.line-string :as l]
[cmr.spatial.ring-relations :as rr]
[clojure.math.numeric-tower :as math])
[cmr.spatial.ring-relations :as rr])
(:import
(java.io BufferedReader File FileReader FileOutputStream FileInputStream)
(java.nio.file Files)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"Contains parameter converters for shapefile parameter"
(:require
[clojure.java.io :as io]
[cmr.common.config :as cfg :refer [defconfig]]
[cmr.common.log :refer [debug info]]
[cmr.common.config :refer [defconfig]]
[cmr.common.log :refer [debug]]
[cmr.common.mime-types :as mt]
[cmr.common.util :as util]
[cmr.elastic-utils.search.es-group-query-conditions :as gc]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[clojure.string :as string]
[cmr.elastic-utils.search.es-group-query-conditions :as gc]
[cmr.elastic-utils.search.es-params-converter :as p]
[cmr.common.config :as cfg :refer [defconfig]]
[cmr.common.config :refer [defconfig]]
[cmr.common.services.errors :as errors]
[cmr.search.models.query :as qm]
[cmr.spatial.circle :as spatial-circle]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
has_granules_created_at time ranges.
3.) Return the full search results for those collection-ids returned by the granule query."
(:require
[clojure.set :as set]
[cmr.elastic-utils.search.query-execution :as query-execution]
[cmr.search.services.query-execution.multi-part-query-feature-common :as mp-query-common]))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
This works exactly the same as the has_granules_created_at feature, but uses a different
parameter to search for relevant granules."
(:require
[clojure.set :as set]
[cmr.elastic-utils.search.query-execution :as query-execution]
[cmr.search.services.query-execution.multi-part-query-feature-common :as mp-query-common]))

Expand Down
4 changes: 1 addition & 3 deletions search-app/src/cmr/search/services/result_format_helper.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns cmr.search.services.result-format-helper
"Defines helper functions to support result format. Result format is either a keyword or a map in
the format of {:format umm-json :version \"1.3\"}. Currently, only umm json has version support."
(:require [cmr.common.mime-types :as mt]
[cmr.umm-spec.versioning :as ver]))
the format of {:format umm-json :version \"1.3\"}. Currently, only umm json has version support.")

(defn printable-result-format
"Returns the given result format in a printable format"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns cmr.search.services.tagging.json-schema-validation
"This contains JSON schema validations related to the tagging service"
(:require [cmr.common.validations.json-schema :as js]
[cheshire.core :as json]
[cmr.common.services.errors :as errors]))
(:require [cmr.common.validations.json-schema :as js]))

(def ^:private base-tag-schema-structure
"Base Schema for tags as json."
Expand Down
4 changes: 2 additions & 2 deletions search-app/src/cmr/search/services/tagging_service.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"Creates the tag saving it as a revision in metadata db. Returns the concept id and revision id
of the saved tag."
[context tag-json-str]
(info (format "Creating tag [%s]" tag-json-str))
(debug (format "Creating tag [%s]" tag-json-str))
(let [user-id (context-util/context->user-id
context
msg/token-required-for-tag-modification)
Expand Down Expand Up @@ -254,7 +254,7 @@
:originator-id originator-id})
operation))
tag-associations))]
(info "update-tag-associations:" t1)
(debug "update-tag-associations:" t1)
result))

(defn- update-tag-associations-with-query
Expand Down
1 change: 0 additions & 1 deletion search-app/src/cmr/search/services/url_helper.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns cmr.search.services.url-helper
"Defines functions to construct search urls"
(:require
[cmr.common.config :as cfg]
[cmr.transmit.config :as tconfig]))

(defn search-root
Expand Down