mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
e7e8a5705b
* daml-lf/data: Truncate party names in log output, on request. The party name can grow quite long, so we offer ledger implementors the opportunity to truncate it in structured log output. Unfortunately, because we use Logback through the global `LoggerFactory`, there is no place to inject logging configuration. This means we also need to use global, mutable state to configure logging output. I have added a `LoggingConfiguration` class+object in Daml-LF Data, which may not be the best place, but I can't think of a better one right now. I suggest we leave it there until it has reason to grow, at which point we may want to move it. CHANGELOG_BEGIN CHANGELOG_END * logging-entries: Make `ToLoggingValue` mixin-able. * participant-integration-api: Truncate parties in filters when logging. * participant-integration-api: Cast to `Party` for logging. Invalid input should not break the request at this point. No assertions. * daml-lf/data: Move `Party to LoggingValue` to a new package. This avoids the transitive dependency issue most of the time. * daml-lf-data: Move the `Identifier` logging to another package. Again, reduces the need for transitively depending on _logging-entries_. |
||
---|---|---|
.. | ||
bin | ||
src | ||
.gitignore | ||
BUILD.bazel |