Skip to content

Commit

Permalink
Merge pull request #1437 from dahlia/0.15-maintenance
Browse files Browse the repository at this point in the history
Release 0.15.0 (with 0.14.1 port)
  • Loading branch information
dahlia authored Aug 19, 2021
2 parents 8a6cb15 + 04d66fa commit 4dd1799
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
16 changes: 7 additions & 9 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,23 @@ Libplanet changelog
Version 0.15.0
--------------

To be released.
Released on August 18, 2021.

### Backward-incompatible API changes

- Added `IRandom.Seed` property. [[#1431]]

### Backward-incompatible network protocol changes

### Backward-incompatible storage format changes
[#1431]: https://github.com/planetarium/libplanet/pull/1431

### Added APIs

### Behavioral changes
Version 0.14.1
--------------

### Bug fixes
Released on August 18, 2021.

### CLI tools
- Added additional tags to logging. [[#1433]]

[#1431]: https://github.com/planetarium/libplanet/pull/1431
[#1433]: https://github.com/planetarium/libplanet/pull/1433


Version 0.14.0
Expand Down
5 changes: 4 additions & 1 deletion Libplanet/Blockchain/Renderers/LoggedRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ public LoggedRenderer(
)
{
Renderer = renderer;
Logger = logger.ForContext(renderer.GetType());
Logger = logger
.ForContext<LoggedRenderer<T>>()
.ForContext("Source", $"[{nameof(LoggedRenderer<T>)}] ")
.ForContext(renderer.GetType());
Level = level;
}

Expand Down
4 changes: 3 additions & 1 deletion Libplanet/Net/Swarm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public Swarm(
trustedAppProtocolVersionSigners?.ToImmutableHashSet();

string loggerId = _privateKey.ToAddress().ToHex();
_logger = Log.ForContext<Swarm<T>>()
_logger = Log
.ForContext<Swarm<T>>()
.ForContext("Source", $"[{nameof(Swarm<T>)}] ")
.ForContext("SwarmId", loggerId);

Options = options ?? new SwarmOptions();
Expand Down
4 changes: 3 additions & 1 deletion Libplanet/Net/Transports/NetMQTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public NetMQTransport(
);
}

_logger = Log.ForContext<NetMQTransport>();
_logger = Log
.ForContext<NetMQTransport>()
.ForContext("Source", $"[{nameof(NetMQTransport)}] ");

_requests = Channel.CreateUnbounded<MessageRequest>();
_runtimeCancellationTokenSource = new CancellationTokenSource();
Expand Down

0 comments on commit 4dd1799

Please sign in to comment.