This commit is contained in:
Redkale
2017-05-14 13:27:07 +08:00
parent 8e36a7b450
commit 5ce5f53ed8
3 changed files with 3 additions and 15 deletions

View File

@@ -168,7 +168,7 @@ public class NodeHttpServer extends NodeServer {
} }
final ClassFilter restFilter = ClassFilter.create(null, restConf.getValue("includes", ""), restConf.getValue("excludes", ""), includeValues, excludeValues); final ClassFilter restFilter = ClassFilter.create(null, restConf.getValue("includes", ""), restConf.getValue("excludes", ""), includeValues, excludeValues);
final boolean finest = logger.isLoggable(Level.FINEST);
super.interceptorServices.forEach((service) -> { super.interceptorServices.forEach((service) -> {
final Class stype = Sncp.getServiceType(service); final Class stype = Sncp.getServiceType(service);
final String name = Sncp.getResourceName(service); final String name = Sncp.getResourceName(service);

View File

@@ -44,15 +44,6 @@ public abstract class NodeServer {
//日志输出对象 //日志输出对象
protected final Logger logger; protected final Logger logger;
//日志是否为FINE级别
protected final boolean fine;
//日志是否为FINER级别
protected final boolean finer;
//日志是否为FINEST级别
protected final boolean finest;
//进程主类 //进程主类
protected final Application application; protected final Application application;
@@ -95,9 +86,6 @@ public abstract class NodeServer {
this.resourceFactory = application.getResourceFactory().createChild(); this.resourceFactory = application.getResourceFactory().createChild();
this.server = server; this.server = server;
this.logger = Logger.getLogger(this.getClass().getSimpleName()); this.logger = Logger.getLogger(this.getClass().getSimpleName());
this.fine = logger.isLoggable(Level.FINE);
this.finer = logger.isLoggable(Level.FINER);
this.finest = logger.isLoggable(Level.FINEST);
} }
protected Consumer<Runnable> getExecutor() throws Exception { protected Consumer<Runnable> getExecutor() throws Exception {

View File

@@ -6,7 +6,7 @@
package org.redkale.watch; package org.redkale.watch;
import java.lang.annotation.*; import java.lang.annotation.*;
import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.RetentionPolicy.RUNTIME;
/** /**
@@ -19,7 +19,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*/ */
@Inherited @Inherited
@Documented @Documented
@Target({FIELD}) @Target({FIELD, METHOD})
@Retention(RUNTIME) @Retention(RUNTIME)
public @interface Watchable { public @interface Watchable {