- Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
PROBLEM:
Sometimes Sakuli prints out after all is down the following log line
ERROR [2018-03-07 19:19:27.543] - Connection refused (Connection refused) This comes from the Sahi ShutDownHookl class. When System.exit() is called at the SakuliStarter. This is basically no Error because the Sahi Proxy is just already down.
TODO:
- Find a way to suppress this misleading log message
- Logger
- Maybe Aspect around and call the hook earlier
public class ShutDownHook implements Runnable { private String sahiHost; private String port; private String sessionId; public ShutDownHook(String sahiHost, String port, String sessionId) { this.sahiHost = sahiHost; this.port = port; this.sessionId = sessionId; } public void run() { try { System.out.println("Shutting down ..."); String urlStr = "http://" + this.sahiHost + ":" + this.port + "/_s_/dyn/Suite_kill/?sahisid=" + this.sessionId; URL url = new URL(urlStr); url.getContent(); } catch (IOException var3) { System.err.println(var3.getMessage()); } } }Reactions are currently unavailable