Skip to content

Commit 113bdd8

Browse files
committed
Exit simple sample with exitcode 0 (OK) or 1 (error)
1 parent ddeb906 commit 113bdd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/simple/src/main/java/Demo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ public static void main(String[] args) {
2626
try {
2727
quicklog.entry(Instant.now(), "a-type", "object:1", "target:2", extra, traceCtx, tags);
2828
System.out.println("OK: Logged.");
29+
System.exit(0);
2930
} catch (Exception e) {
3031
System.out.println("Error: " + e.toString());
32+
System.exit(1);
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)