Changeset 1380 for trunk/autoquest-httpmonitor/src/main
- Timestamp:
- 02/12/14 15:12:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/HttpMonitorLogManager.java
r1374 r1380 110 110 */ 111 111 @Override 112 public void handleHttpExchange(HttpExchange httpExchange) {112 public synchronized void handleHttpExchange(HttpExchange httpExchange) { 113 113 try { 114 114 if (writer == null) { 115 synchronized (this) { 116 if (writer == null) { 117 writer = new HttpMonitorOutputWriter(logFileBaseDir); 118 writer.init(); 119 } 120 } 115 writer = new HttpMonitorOutputWriter(logFileBaseDir); 116 writer.init(); 121 117 } 122 118 … … 125 121 catch (Exception e) { 126 122 Console.printerrln("could not handle message: " + e); 127 e.printStackTrace();128 123 Console.logException(e); 129 124
Note: See TracChangeset
for help on using the changeset viewer.