10 |
|
|
11 |
ExecutorService threadPool = Executors.newFixedThreadPool(1); |
ExecutorService threadPool = Executors.newFixedThreadPool(1); |
12 |
|
|
13 |
static class LogPersistanceWorker implements Runnable { |
private static class LogPersistanceWorker implements Runnable { |
14 |
String brugerid; |
String brugerid; |
15 |
String postnr; |
String postnr; |
16 |
String adresse; |
String adresse; |
28 |
try { |
try { |
29 |
DatabaseLayer.saveRequestLog(brugerid,postnr,adresse,result); |
DatabaseLayer.saveRequestLog(brugerid,postnr,adresse,result); |
30 |
} catch (SQLException e) { |
} catch (SQLException e) { |
31 |
System.out.println("Error saving log entry " + e.getMessage() ); |
System.out.println("Error saving log entry " + e.getMessage() + ". Postnr=" + postnr + ". Adresse=" + adresse); |
32 |
} |
} |
33 |
} |
} |
34 |
} |
} |