Commit f74b46d9 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Update Main.java

parent f1ccffd4
Pipeline #30180 failed with stage
in 37 seconds
......@@ -57,6 +57,9 @@ import javax.json.JsonString;
import javax.json.JsonValue;
import javax.json.JsonValue.ValueType;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Main {
public static void main(String[] args) throws Exception {
System.exit(run(args));
......@@ -97,6 +100,8 @@ public class Main {
} else {
runCollector(config);
}
} catch (Throwable t) {
logger.log(Level.SEVERE, "Couldn't start server", t);
} catch (RuntimeException ex) {
return onException(ex, options.has("debug"));
} catch (Exception ex) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment