Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:bThink-BGU/BPjs into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
michbarsinai committed Jan 3, 2021
2 parents cee6fb6 + bb546fd commit a28ff6e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public void fine(Object msg, Object ...args) {
log(LogLevel.Fine, msg, args);
}

public void log(LogLevel lvl, Object msg, Object ...args) {
public void log(LogLevel lvl, Object msg, Object... args) {
if (level.compareTo(lvl) >= 0) {
System.out.println("[BP][" + lvl.name() + "] " + MessageFormat.format(
ScriptableUtils.stringify(msg),
Arrays.stream(args).map(ScriptableUtils::stringify).toArray()));
System.out.println("[BP][" + lvl.name() + "] " +
(args.length == 0 ? ScriptableUtils.stringify(msg) :
MessageFormat.format(ScriptableUtils.stringify(msg), Arrays.stream(args).map(ScriptableUtils::stringify).toArray())));
}
}

Expand Down

0 comments on commit a28ff6e

Please sign in to comment.