Skip to content

Commit

Permalink
Reduce log output for price nodes
Browse files Browse the repository at this point in the history
In case a price feed has an error, a stacktrace dumped in the logs
for each incoming getAllMarketPrice request. In detail, there is one
line of log stating that there is a getAllMarketPrice request, one
line of log stating that there is an error and around 150 lines of
stracktrace.
This fills up the logs quite fast, around 7.5G per day which is
unnecessary.
This commit only outputs the stacktrace in debug log configuration.
  • Loading branch information
freimair committed Apr 27, 2020
1 parent 590f16d commit 1b2c6c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ private Map<String, Object> getMetadata(ExchangeRateProvider provider, Set<Excha
timestamp = getTimestamp(provider, exchangeRates);
} catch (Throwable t) {
log.error(t.toString());
t.printStackTrace();
if (log.isDebugEnabled())
t.printStackTrace();
}

if (provider instanceof BitcoinAverage.Local) {
Expand Down

0 comments on commit 1b2c6c9

Please sign in to comment.