Skip to content

Commit

Permalink
Remove extra ms from log message (#42068)
Browse files Browse the repository at this point in the history
This log message logs a `TimeValue` which includes units, but also logs an
extra `ms`. This commit removes the extra `ms`.
  • Loading branch information
DaveCTurner committed May 10, 2019
1 parent 860b5c2 commit acc36fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static Level getLogLevel(TransportException e) {
}

void logWarnWithTimestamp() {
logger.info(() -> new ParameterizedMessage("last failed join attempt was {} ms ago, failed to join {} with {}",
logger.info(() -> new ParameterizedMessage("last failed join attempt was {} ago, failed to join {} with {}",
TimeValue.timeValueMillis(TimeValue.nsecToMSec(System.nanoTime() - timestamp)),
destination,
joinRequest),
Expand Down

0 comments on commit acc36fa

Please sign in to comment.