if (t == null) {
log(level, "{} -- {} -- {} -- {}", request.getAgentId(), level,
</BUG>
logEvent.getLoggerName(), logEvent.getMessage());
} else {
<BUG>log(level, "{} -- {} -- {} -- {}\n{}", request.getAgentId(), level,
</BUG>
logEvent.getLoggerName(), logEvent.getMessage(), t);
}
} catch (Throwable t) {

if (t == null) {
log(level, "{} -- {} -- {} -- {}", agentDisplay, level,
logEvent.getLoggerName(), logEvent.getMessage());
} else {
log(level, "{} -- {} -- {} -- {}\n{}", agentDisplay, level,
logEvent.getLoggerName(), logEvent.getMessage(), t);
}
} catch (Throwable t) {
