From 436a288fc39d797ff21317f49574f19502580ffd Mon Sep 17 00:00:00 2001 From: Greg Scullard Date: Thu, 29 Aug 2019 02:28:05 +0200 Subject: [PATCH] Fixed lowercase bug, added error logging in the event of transaction type not known Signed-off-by: Greg Scullard --- .../java/com/hedera/recordFileLogger/RecordFileLogger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hedera/recordFileLogger/RecordFileLogger.java b/src/main/java/com/hedera/recordFileLogger/RecordFileLogger.java index 39c2606269d..57ca5960ec8 100644 --- a/src/main/java/com/hedera/recordFileLogger/RecordFileLogger.java +++ b/src/main/java/com/hedera/recordFileLogger/RecordFileLogger.java @@ -712,7 +712,8 @@ private static int getTransactionTypeId (TransactionBody body) { if (transactionTypes.containsKey(transactionName)) { return transactionTypes.get(transactionName); } else { - return transactionTypes.get("unknown"); + log.error("Transaction type {} not known to mirror node, storing 'UNKNOWN'", transactionName); + return transactionTypes.get("UNKNOWN"); } }