Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
fix log usage
Browse files Browse the repository at this point in the history
  • Loading branch information
linxuhong committed Nov 13, 2019
1 parent e4e1bd9 commit c4b6507
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hangout-cmd/src/main/java/com/ctrip/ops/sysdev/cmd/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ public static void main(String[] args) {
try {
configs = HangoutConfig.parse(cm.getConfigFile());
} catch (Exception e) {
e.printStackTrace();
log.error("failed to pares config file : " + cm.getConfigFile(), e);
System.exit(1);
}
log.debug(configs);

if (log.isDebugEnabled()) {
log.debug(configs);
}

final List<HashMap<String, Map>> inputConfigs = (ArrayList<HashMap<String, Map>>) configs.get("inputs");
final List<HashMap<String, Map>> filterConfigs = (ArrayList<HashMap<String, Map>>) configs.get("filters");
Expand Down

0 comments on commit c4b6507

Please sign in to comment.