From 8aaf26290d3810f89f22969eda85ebecab32a0ce Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 27 Aug 2020 17:25:54 -0700 Subject: [PATCH] venue: print out full list of offline traders Otherwise, we only get the int representation of the hex string. --- venue/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/venue/errors.go b/venue/errors.go index cf7c1548f..5b520f2b3 100644 --- a/venue/errors.go +++ b/venue/errors.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/btcsuite/btcd/wire" + "github.com/davecgh/go-spew/spew" orderT "github.com/lightninglabs/llm/order" "github.com/lightninglabs/subasta/venue/matching" ) @@ -22,7 +23,7 @@ type ErrMissingTraders struct { // Error implements the error interface. func (e *ErrMissingTraders) Error() string { return fmt.Sprintf("%v traders not online in venue: %v", - len(e.TraderKeys), e.TraderKeys) + len(e.TraderKeys), spew.Sdump(e.TraderKeys)) } // ErrMsgTimeout is returned if a trader doesn't send an expected response in