Skip to content

Commit

Permalink
Logging in millisecs
Browse files Browse the repository at this point in the history
After change to Akka consensus in NEO 3.0, it's so fast that seconds do not mean much anymore.. now milliseconds is important to actually know of what is going on the consensus algorithm.
  • Loading branch information
igormcoelho authored and erikzhang committed Aug 14, 2018
1 parent 041c489 commit b7bcde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimplePolicy/SimplePolicyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void ILogPlugin.Log(string source, LogLevel level, string message)
{
if (source != nameof(ConsensusService)) return;
DateTime now = DateTime.Now;
string line = $"[{now.TimeOfDay:hh\\:mm\\:ss}] {message}";
string line = $"[{now.TimeOfDay:hh\\:mm\\:ss\\.fff}] {message}";
Console.WriteLine(line);
if (string.IsNullOrEmpty(log_dictionary)) return;
lock (log_dictionary)
Expand Down

0 comments on commit b7bcde5

Please sign in to comment.