Skip to content

Commit d63918b

Browse files
xingzhang-suseBinX-Suse
authored andcommitted
NVSHAS-9789: Remove unnecessary manager log on remote registry configuration (Global investigation)
1 parent fa1800f commit d63918b

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

admin/src/main/scala/com/neu/service/authentication/ExtraAuthService.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ class ExtraAuthService() extends BaseService with DefaultJsonFormats with LazyLo
168168
val userWrap =
169169
jsonToUserWrap(Await.result(result, RestClient.waitingLimit.seconds))
170170
val user = userWrap.user
171-
logger.info("user: {}", user)
172171
val token1 = TokenWrap(
173172
None,
174173
None,
@@ -188,7 +187,6 @@ class ExtraAuthService() extends BaseService with DefaultJsonFormats with LazyLo
188187
)
189188
)
190189
)
191-
logger.info("user token: {}", token1)
192190
val authToken = AuthenticationManager.parseToken(tokenWrapToJson(token1))
193191
authToken
194192
} catch {

admin/src/main/scala/com/neu/service/authentication/SuseAuthService.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ class SuseAuthService()(implicit
197197
val selfWrap =
198198
jsonToSelfWrap(Await.result(result, RestClient.waitingLimit.seconds))
199199
val user = selfWrap.user
200-
logger.info("user: {}", user)
201200
val token1 = TokenWrap(
202201
selfWrap.password_days_until_expire,
203202
None,

admin/src/main/scala/com/neu/service/device/DeviceService.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class DeviceService extends Directives with DefaultJsonFormats with LazyLogging
177177
systemConfigWrapToJson(
178178
SystemConfigWrap(Some(systemConfig), None, None, None, None)
179179
)
180-
logger.info("Updating config: {}", payload)
180+
logger.info("Updating config")
181181
RestClient.httpRequestWithHeader(
182182
s"${baseClusterUri(tokenId)}/system/config",
183183
HttpMethods.PATCH,
@@ -189,7 +189,7 @@ class DeviceService extends Directives with DefaultJsonFormats with LazyLogging
189189
systemConfigWrapToJson(
190190
SystemConfigWrap(None, None, Some(systemConfig), None, None)
191191
)
192-
logger.info("Updating fed config: {}", fedPayload)
192+
logger.info("Updating fed config")
193193
RestClient.httpRequestWithHeader(
194194
s"${baseClusterUri(tokenId)}/system/config?scope=$scope",
195195
HttpMethods.PATCH,
@@ -276,7 +276,7 @@ class DeviceService extends Directives with DefaultJsonFormats with LazyLogging
276276
remoteRepositoryWrap
277277
)
278278
val name = remoteRepositoryWrap.config.nickname
279-
logger.info("Update remote repository: {}", payload)
279+
logger.info("Update remote repository")
280280
RestClient.httpRequestWithHeader(
281281
s"${baseClusterUri(tokenId)}/system/config/remote_repository/${UrlEscapers.urlFragmentEscaper().escape(name)}",
282282
HttpMethods.PATCH,

admin/src/main/scala/com/neu/service/sigstore/SigstoreService.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SigstoreService() extends BaseService with DefaultJsonFormats with LazyLog
2424

2525
def createSigstore(tokenId: String, rootOfTrust: RootOfTrust): Route = complete {
2626
val payload = rootOfTrustToJson(rootOfTrust)
27-
logger.info("Creating sigstore: {}...", payload)
27+
logger.info("Creating sigstore")
2828
RestClient.httpRequestWithHeaderDecode(
2929
s"${baseClusterUri(tokenId)}/scan/sigstore/root_of_trust",
3030
POST,
@@ -37,7 +37,7 @@ class SigstoreService() extends BaseService with DefaultJsonFormats with LazyLog
3737
val payload = rootOfTrustToJson(rootOfTrust)
3838
val url =
3939
s"${baseClusterUri(tokenId)}/scan/sigstore/root_of_trust/${rootOfTrust.name.get}"
40-
logger.info("Updating sigstore: {}...", payload)
40+
logger.info("Updating sigstore")
4141
logger.info("url: {}...", url)
4242
RestClient.httpRequestWithHeader(
4343
url,
@@ -69,7 +69,7 @@ class SigstoreService() extends BaseService with DefaultJsonFormats with LazyLog
6969

7070
def createVerifier(tokenId: String, verifier: Verifier): Route = complete {
7171
val payload = verifierToJson(verifier)
72-
logger.info("Creating verifier: {}", payload)
72+
logger.info("Creating verifier")
7373
logger.info("for {}...", verifier.root_of_trust_name.get)
7474
RestClient.httpRequestWithHeaderDecode(
7575
s"${baseClusterUri(tokenId)}/scan/sigstore/root_of_trust/${verifier.root_of_trust_name.get}/verifier",
@@ -83,7 +83,7 @@ class SigstoreService() extends BaseService with DefaultJsonFormats with LazyLog
8383
val payload = verifierToJson(verifier)
8484
val url =
8585
s"${baseClusterUri(tokenId)}/scan/sigstore/root_of_trust/${verifier.root_of_trust_name.get}/verifier/${verifier.name.get}"
86-
logger.info("Updating verifier: {}", payload)
86+
logger.info("Updating verifier")
8787
logger.info("for {}...", verifier.root_of_trust_name.get)
8888
logger.info("url: {}", url)
8989
RestClient.httpRequestWithHeader(

0 commit comments

Comments
 (0)