From 686c6fcae15888267a54839e3ebf8ed3e0ff2a73 Mon Sep 17 00:00:00 2001
From: Jake Taylor <jake@elixxir.io>
Date: Wed, 29 Jun 2022 13:06:38 -0500
Subject: [PATCH] add log microseconds

---
 bindings/utilities.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bindings/utilities.go b/bindings/utilities.go
index 96c7b346e..7eb109730 100644
--- a/bindings/utilities.go
+++ b/bindings/utilities.go
@@ -5,6 +5,7 @@ import (
 	"github.com/pkg/errors"
 	jww "github.com/spf13/jwalterweatherman"
 	"google.golang.org/grpc/grpclog"
+	"log"
 )
 
 // sets level of logging. All logs the set level and above will be displayed
@@ -25,6 +26,7 @@ func LogLevel(level int) error {
 	threshold := jww.Threshold(level)
 	jww.SetLogThreshold(threshold)
 	jww.SetStdoutThreshold(threshold)
+	jww.SetFlags(log.LstdFlags | log.Lmicroseconds)
 
 	switch threshold {
 	case jww.LevelTrace:
-- 
GitLab