Skip to content

Commit cc69c5e

Browse files
committed
[DEBUG] Remove fee logging unless in debug mode
1 parent 7c43835 commit cc69c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bdap/rpclinking.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "primitives/transaction.h"
2525
#include "wallet/wallet.h"
2626
#include "uint256.h"
27+
#include "utilmoneystr.h"
2728
#include "utiltime.h"
2829
#include "validation.h"
2930

@@ -265,7 +266,7 @@ static UniValue SendLinkRequest(const JSONRPCRequest& request)
265266
CAmount monthlyFee, oneTimeFee, depositFee;
266267
if (!GetBDAPFees(OP_BDAP_NEW, OP_BDAP_LINK_REQUEST, bdapType, nMonths, monthlyFee, oneTimeFee, depositFee))
267268
throw JSONRPCError(RPC_BDAP_FEE_UNKNOWN, strprintf("Error calculating BDAP fees."));
268-
LogPrintf("%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, monthlyFee, oneTimeFee, depositFee);
269+
LogPrint("bdap", "%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, FormatMoney(monthlyFee), FormatMoney(oneTimeFee), FormatMoney(depositFee));
269270
// Send the transaction
270271
CWalletTx wtx;
271272
bool fUseInstantSend = false;
@@ -440,6 +441,7 @@ static UniValue SendLinkAccept(const JSONRPCRequest& request)
440441
CAmount monthlyFee, oneTimeFee, depositFee;
441442
if (!GetBDAPFees(OP_BDAP_NEW, OP_BDAP_LINK_ACCEPT, bdapType, nMonths, monthlyFee, oneTimeFee, depositFee))
442443
throw JSONRPCError(RPC_BDAP_FEE_UNKNOWN, strprintf("Error calculating BDAP fees."));
444+
LogPrint("bdap", "%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, FormatMoney(monthlyFee), FormatMoney(oneTimeFee), FormatMoney(depositFee));
443445

444446
// Send the transaction
445447
CWalletTx wtx;

0 commit comments

Comments
 (0)