mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
3ad9cd58d9
* Log templateId & choice name (if present) on command submissions in the json API changelog_begin - [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level) changelog_end * Move the template id & the choice into the logging context * Update ledger-service/http-json/src/main/scala/com/digitalasset/http/CommandService.scala Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com> * Update ledger-service/http-json/src/main/scala/com/digitalasset/http/CommandService.scala Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com> * Fix compile error due to scala 2.12 collection differences Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
59 lines
1.8 KiB
Python
59 lines
1.8 KiB
Python
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test_suite",
|
|
"silencer_plugin",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "contextualized-logging",
|
|
srcs = glob(["src/main/scala/**/*.scala"]),
|
|
plugins = [
|
|
silencer_plugin,
|
|
],
|
|
scala_deps = [
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
"@maven//:org_scala_lang_modules_scala_collection_compat",
|
|
],
|
|
scalacopts = ["-Xsource:2.13"],
|
|
tags = ["maven_coordinates=com.daml:contextualized-logging:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
deps = [
|
|
"//libs-scala/grpc-utils",
|
|
"@maven//:io_grpc_grpc_api",
|
|
"@maven//:net_logstash_logback_logstash_logback_encoder",
|
|
"@maven//:org_slf4j_slf4j_api",
|
|
],
|
|
)
|
|
|
|
da_scala_test_suite(
|
|
name = "contextualized-logging-tests",
|
|
srcs = glob(["src/test/suite/**/*.scala"]),
|
|
resources = glob(["src/test/suite/resources/**/*"]),
|
|
scala_deps = [
|
|
"@maven//:com_typesafe_akka_akka_actor",
|
|
"@maven//:com_typesafe_akka_akka_stream",
|
|
"@maven//:com_chuusai_shapeless",
|
|
"@maven//:io_circe_circe_core",
|
|
"@maven//:io_circe_circe_generic",
|
|
"@maven//:io_circe_circe_parser",
|
|
"@maven//:org_mockito_mockito_scala",
|
|
"@maven//:org_typelevel_cats_core",
|
|
"@maven//:org_typelevel_cats_kernel",
|
|
],
|
|
deps = [
|
|
":contextualized-logging",
|
|
"@maven//:ch_qos_logback_logback_classic",
|
|
"@maven//:ch_qos_logback_logback_core",
|
|
"@maven//:net_logstash_logback_logstash_logback_encoder",
|
|
"@maven//:org_mockito_mockito_core",
|
|
"@maven//:org_slf4j_slf4j_api",
|
|
],
|
|
)
|