JUNEAU-172 @RestResource(debug=true) doesn't work if REST method not
matched.
diff --git a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
index b02df69..95a27e0 100644
--- a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
+++ b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContext.java
@@ -3694,13 +3694,17 @@
 			logger = getInstanceProperty(REST_logger, resource, RestLogger.class, NoOpRestLogger.class, resourceResolver, this);

 			callLogger = getInstanceProperty(REST_callLogger, resource, RestCallLogger.class, BasicRestCallLogger.class, resourceResolver, this);

 

-			Object clc = getProperty(REST_callLoggerConfig);

-			if (clc instanceof RestCallLoggerConfig)

-				this.callLoggerConfig = (RestCallLoggerConfig)clc;

-			else if (clc instanceof ObjectMap)

-				this.callLoggerConfig = RestCallLoggerConfig.create().apply((ObjectMap)clc).build();

-			else

-				this.callLoggerConfig = RestCallLoggerConfig.DEFAULT;

+			if (debug == Enablement.TRUE) {

+				this.callLoggerConfig = RestCallLoggerConfig.DEFAULT_DEBUG;

+			} else {

+				Object clc = getProperty(REST_callLoggerConfig);

+				if (clc instanceof RestCallLoggerConfig)

+					this.callLoggerConfig = (RestCallLoggerConfig)clc;

+				else if (clc instanceof ObjectMap)

+					this.callLoggerConfig = RestCallLoggerConfig.create().apply((ObjectMap)clc).build();

+				else

+					this.callLoggerConfig = RestCallLoggerConfig.DEFAULT;

+			}

 

 			properties = builder.properties;

 			serializers =