From b7bcde5bb7eccad0aeb8dde1832151eee9911334 Mon Sep 17 00:00:00 2001 From: Igor Machado Coelho Date: Mon, 13 Aug 2018 16:23:39 -0300 Subject: [PATCH] Logging in millisecs 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. --- SimplePolicy/SimplePolicyPlugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimplePolicy/SimplePolicyPlugin.cs b/SimplePolicy/SimplePolicyPlugin.cs index 1f81dd4d05..c3175f3769 100644 --- a/SimplePolicy/SimplePolicyPlugin.cs +++ b/SimplePolicy/SimplePolicyPlugin.cs @@ -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)