From f46fdefcefcdcd2f8c2966199924f1946f98821a Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Mon, 17 Dec 2018 16:33:48 -0500 Subject: [PATCH] swarm: log output formatting --- swarm/swap_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/swap_test.go b/swarm/swap_test.go index 80d6255dd7..9239f10f86 100644 --- a/swarm/swap_test.go +++ b/swarm/swap_test.go @@ -209,7 +209,7 @@ func TestSwapNetworkSymmetricFileUpload(t *testing.T) { log.Trace(fmt.Sprintf("balance of %s with %s: %d", n.TerminalString(), k.TerminalString(), mapForSubK[k])) //...check that they have the same balance in Abs terms and that it is not 0 if balanceKwithN+mapForSubK[k] != 0 && balanceKwithN != 0 { - log.Error(fmt.Sprintf("Expected balances to be a+b = 0 AND balance(a) != 0, but they are not, balance k with n: %d, balance n with k: %d", balanceKwithN, mapForSubK[k])) + log.Error("Expected balances to be a+b = 0 AND balance(a) != 0, but they are not", "balance_k_with", balanceKwithN, "balance_n_with_k", mapForSubK[k]) errorFound = true } }