This is an automated email from the ASF dual-hosted git repository. pascalschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new a5e4eca Remove log placeholders from exception messages a5e4eca is described below commit a5e4ecae91f7775b1ade1561c3e07917459263f5 Author: Pascal Schumacher <pascalschumac...@gmx.net> AuthorDate: Thu Sep 6 20:48:56 2018 +0200 Remove log placeholders from exception messages --- .../org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicy.java | 2 +- .../org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicy.java | 2 +- .../org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicy.java | 2 +- .../apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicy.java | 2 +- .../src/main/java/org/apache/camel/component/snmp/SnmpProducer.java | 2 +- .../src/main/java/org/apache/camel/component/snmp/SnmpTrapProducer.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicy.java b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicy.java index 6c0ac42..b0763ce 100644 --- a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicy.java +++ b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/CronScheduledRoutePolicy.java @@ -58,7 +58,7 @@ public class CronScheduledRoutePolicy extends ScheduledRoutePolicy implements Sc // validate time options has been configured if ((getRouteStartTime() == null) && (getRouteStopTime() == null) && (getRouteSuspendTime() == null) && (getRouteResumeTime() == null)) { - throw new IllegalArgumentException("Scheduled Route Policy for route {} has no start/stop/suspend/resume times specified"); + throw new IllegalArgumentException("Scheduled Route Policy for route " + route.getId() + " has no start/stop/suspend/resume times specified"); } registerRouteToScheduledRouteDetails(route); diff --git a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicy.java b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicy.java index 5b29f9b..f14b47e 100644 --- a/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicy.java +++ b/components/camel-quartz/src/main/java/org/apache/camel/routepolicy/quartz/SimpleScheduledRoutePolicy.java @@ -64,7 +64,7 @@ public class SimpleScheduledRoutePolicy extends ScheduledRoutePolicy { // validate time options has been configured if ((getRouteStartDate() == null) && (getRouteStopDate() == null) && (getRouteSuspendDate() == null) && (getRouteResumeDate() == null)) { - throw new IllegalArgumentException("Scheduled Route Policy for route {} has no start/stop/suspend/resume times specified"); + throw new IllegalArgumentException("Scheduled Route Policy for route " + route.getId() + " has no start/stop/suspend/resume times specified"); } registerRouteToScheduledRouteDetails(route); diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicy.java b/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicy.java index 1b917a7..c7ce01a 100644 --- a/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicy.java +++ b/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/CronScheduledRoutePolicy.java @@ -60,7 +60,7 @@ public class CronScheduledRoutePolicy extends ScheduledRoutePolicy implements Sc // validate time options has been configured if ((getRouteStartTime() == null) && (getRouteStopTime() == null) && (getRouteSuspendTime() == null) && (getRouteResumeTime() == null)) { - throw new IllegalArgumentException("Scheduled Route Policy for route {} has no start/stop/suspend/resume times specified"); + throw new IllegalArgumentException("Scheduled Route Policy for route " + route.getId() + " has no start/stop/suspend/resume times specified"); } registerRouteToScheduledRouteDetails(route); diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicy.java b/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicy.java index 95f135e..4c3e39c 100644 --- a/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicy.java +++ b/components/camel-quartz2/src/main/java/org/apache/camel/routepolicy/quartz2/SimpleScheduledRoutePolicy.java @@ -66,7 +66,7 @@ public class SimpleScheduledRoutePolicy extends ScheduledRoutePolicy { // validate time options has been configured if ((getRouteStartDate() == null) && (getRouteStopDate() == null) && (getRouteSuspendDate() == null) && (getRouteResumeDate() == null)) { - throw new IllegalArgumentException("Scheduled Route Policy for route {} has no start/stop/suspend/resume times specified"); + throw new IllegalArgumentException("Scheduled Route Policy for route " + route.getId() + " has no start/stop/suspend/resume times specified"); } registerRouteToScheduledRouteDetails(route); diff --git a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpProducer.java b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpProducer.java index a6b5cc5..d7adfde 100644 --- a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpProducer.java +++ b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpProducer.java @@ -117,7 +117,7 @@ public class SnmpProducer extends DefaultProducer { } else if ("udp".equals(this.endpoint.getProtocol())) { transport = new DefaultUdpTransportMapping(); } else { - throw new IllegalArgumentException("Unknown protocol: {} " + this.endpoint.getProtocol()); + throw new IllegalArgumentException("Unknown protocol: " + this.endpoint.getProtocol()); } snmp = new Snmp(transport); diff --git a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpTrapProducer.java b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpTrapProducer.java index c2143df..aa061d2 100644 --- a/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpTrapProducer.java +++ b/components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpTrapProducer.java @@ -101,7 +101,7 @@ public class SnmpTrapProducer extends DefaultProducer { } else if ("udp".equals(this.endpoint.getProtocol())) { transport = new DefaultUdpTransportMapping(); } else { - throw new IllegalArgumentException("Unknown protocol: {} " + this.endpoint.getProtocol()); + throw new IllegalArgumentException("Unknown protocol: " + this.endpoint.getProtocol()); } snmp = new Snmp(transport);