Skip to content

Commit

Permalink
The cli edit option can now add entries that were not in the initial …
Browse files Browse the repository at this point in the history
…config
  • Loading branch information
AlexandraRoatis committed Aug 27, 2019
1 parent 062c92a commit 6b57aba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modMcf/src/org/aion/mcf/config/CfgLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ public boolean updateModule(String logEnum, String logLevel){
if (modules.containsKey(logEnum) && !modules.get(logEnum).equalsIgnoreCase(logLevel)){
modules.replace(logEnum, logLevel);
return true;
}
else {
} else if (!modules.containsKey(logEnum)) {
// allows introducing new logs
modules.put(logEnum, logLevel);
return true;
} else {
return false;
}
}
Expand Down

0 comments on commit 6b57aba

Please sign in to comment.