private String processStackTrace(Throwable cause) { String stackTraceAsString = getStackTraceAsString(cause); if (this.maxStackTraceLength < 0) { int maxStackTraceLen = RabbitUtils .getMaxFrame(((RabbitTemplate) this.errorTemplate).getConnectionFactory()); if (maxStackTraceLen > 0) { maxStackTraceLen -= this.frameMaxHeadroom; this.maxStackTraceLength = maxStackTraceLen; } } if (this.maxStackTraceLength > 0 && stackTraceAsString.length() > this.maxStackTraceLength) { stackTraceAsString = stackTraceAsString.substring(0, this.maxStackTraceLength); this.logger.warn("Stack trace in republished message header truncated due to frame_max limitations; " + "consider increasing frame_max on the broker or reduce the stack trace depth", cause); } return stackTraceAsString; }
private String processStackTrace(Throwable cause) { String stackTraceAsString = getStackTraceAsString(cause); if (this.maxStackTraceLength < 0) { int maxStackTraceLen = RabbitUtils .getMaxFrame(((RabbitTemplate) this.errorTemplate).getConnectionFactory()); if (maxStackTraceLen > 0) { maxStackTraceLen -= this.frameMaxHeadroom; this.maxStackTraceLength = maxStackTraceLen; } } if (this.maxStackTraceLength > 0 && stackTraceAsString.length() > this.maxStackTraceLength) { stackTraceAsString = stackTraceAsString.substring(0, this.maxStackTraceLength); this.logger.warn("Stack trace in republished message header truncated due to frame_max limitations; " + "consider increasing frame_max on the broker or reduce the stack trace depth", cause); } return stackTraceAsString; }
if (this.maxStackTraceLength < 0) { int rabbitMaxStackTraceLength = RabbitUtils .getMaxFrame(this.template.getConnectionFactory()); if (rabbitMaxStackTraceLength > 0) {
if (this.maxStackTraceLength < 0) { int rabbitMaxStackTraceLength = RabbitUtils .getMaxFrame(this.template.getConnectionFactory()); if (rabbitMaxStackTraceLength > 0) {