From 8b8bd58cb8aeb824df0e037f350c928fc9c4e327 Mon Sep 17 00:00:00 2001 From: Sandip Patel Date: Tue, 17 Dec 2019 11:37:41 +0530 Subject: [PATCH] avoid proposal failure messages on running tests and release mode --- libraries/chain/proposal_object.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/chain/proposal_object.cpp b/libraries/chain/proposal_object.cpp index 2186b0b6..50664097 100644 --- a/libraries/chain/proposal_object.cpp +++ b/libraries/chain/proposal_object.cpp @@ -43,7 +43,9 @@ bool proposal_object::is_authorized_to_execute(database& db) const } catch ( const fc::exception& e ) { - elog( "caught exception ${e} while checking authorization of proposal operations",("e", e.to_detail_string()) ); +#ifndef NDEBUG + wlog( "caught exception ${e} while checking authorization of proposal operations",("e", e.to_detail_string()) ); +#endif return false; } return true;