diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2019-09-16 12:23:12 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2019-09-16 12:23:12 +0200 |
commit | 3b091ba44354e0cefc16dfa828e9e2bb4ed2c298 (patch) | |
tree | 5ecd1b2aa7982accbcc69a0a194a1c50c3bae891 /vespa-maven-plugin | |
parent | 6db8c233ee263aeee6e554ecd48d37a87f2a7a56 (diff) |
error is first, not last ...
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r-- | vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java index e2d10316a21..db4d7a4c522 100644 --- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java +++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/DeployMojo.java @@ -89,7 +89,7 @@ public class DeployMojo extends AbstractVespaDeploymentMojo { String timestamp = formatter.format(entry.at()); String message = String.join(padding, entry.message().split("\n")) .replaceAll("\\s*\n", "\n").trim(); - if ( ! entry.isVespaLogEntry() || loggable.compareTo(entry.level()) <= 0) + if ( ! entry.isVespaLogEntry() || loggable.compareTo(entry.level()) >= 0) switch (entry.level()) { case error : getLog().error(" [" + timestamp + "] " + message); break; case warning : getLog().warn (" [" + timestamp + "] " + message); break; |