Skip to content

Commit

Permalink
Fixed tests - cannot use JUL before we try to set the log manager
Browse files Browse the repository at this point in the history
- it would not even work, if gf cannot start, it cannot load it's logging,
  so logs would be lost.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Nov 4, 2022
1 parent c845544 commit 2b3da2b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@

package com.sun.enterprise.glassfish.bootstrap;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
* Tag Main to get the manifest file
*/
public class ASMain {

private static final Logger LOG = Logger.getLogger(ASMain.class.getName());

/**
* Most of the code in this file has been moved to MainHelper
* and ASMainOSGi
Expand All @@ -35,7 +30,7 @@ public static void main(final String[] args) throws Exception {
try {
GlassFishMain.main(args);
} catch (Throwable t) {
LOG.log(Level.SEVERE, "Error starting GlassFish", t);
t.printStackTrace();
throw t;
}
}
Expand Down

0 comments on commit 2b3da2b

Please sign in to comment.