[NO ISSUE][HYR][*DB][MISC] Fix whispered logging, reduce ActiveManager info logging
Change-Id: I95fa2a8a87237500f4cdad0e0146a0ada2a08056
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/6945
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Till Westmann <tillw@apache.org>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/asterixdb/asterix-active/src/main/java/org/apache/asterix/active/ActiveManager.java b/asterixdb/asterix-active/src/main/java/org/apache/asterix/active/ActiveManager.java
index 4adffda..c2227a5 100644
--- a/asterixdb/asterix-active/src/main/java/org/apache/asterix/active/ActiveManager.java
+++ b/asterixdb/asterix-active/src/main/java/org/apache/asterix/active/ActiveManager.java
@@ -98,7 +98,7 @@
}
public void submit(ActiveManagerMessage message) throws HyracksDataException {
- LOGGER.log(Level.INFO, "Message of type " + message.getKind() + " received in " + nodeId);
+ LOGGER.debug("Message of type {} received in {}", message.getKind(), nodeId);
switch (message.getKind()) {
case STOP_ACTIVITY:
stopRuntime(message);
diff --git a/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessage.java b/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessage.java
index 94e08d7..9ca7f88 100644
--- a/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessage.java
+++ b/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/messages/IMessage.java
@@ -34,8 +34,6 @@
static void logMessage(Logger logger, IMessage msg) {
final Level logLevel = msg.isWhispered() ? Level.TRACE : Level.INFO;
- if (logger.isEnabled(logLevel)) {
- logger.info("Received message: {}", msg);
- }
+ logger.log(logLevel, "Received message: {}", msg);
}
}