Ignore:
Timestamp:
12/04/14 10:10:03 (10 years ago)
Author:
pharms
Message:
  • bugfix for duplicate logfile writers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorLogManager.java

    r1821 r1839  
    120120    { 
    121121        HtmlMonitorOutputWriter writer = 
    122             writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 
     122            writers.get(clientInfos.getClientId() + clientInfos.getWebAppId()); 
    123123         
    124124        try { 
    125125            if (writer == null) { 
    126126                synchronized (this) { 
    127                     writer = writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 
     127                    writer = writers.get(clientInfos.getClientId() + clientInfos.getWebAppId()); 
    128128                    if (writer == null) { 
    129129                        writer = new HtmlMonitorOutputWriter 
     
    133133                        writer.init(); 
    134134                        writer.start(); 
    135                         writers.put(clientInfos.getClientId() + clientInfos.getUrl(), writer); 
     135                        writers.put(clientInfos.getClientId() + clientInfos.getWebAppId(), writer); 
    136136                    } 
    137137                } 
     
    148148            // determine, if the writer exists but is not able to log something. In this case, 
    149149            // destroy the writer (part of the message may be logged twice through this). 
    150             writer = writers.get(clientInfos.getClientId() + clientInfos.getUrl()); 
     150            writer = writers.get(clientInfos.getClientId() + clientInfos.getWebAppId()); 
    151151            if (writer != null) { 
    152152                try { 
     
    155155                catch (Exception e1) { 
    156156                    synchronized (this) { 
    157                         writers.remove(clientInfos.getClientId() + clientInfos.getUrl()); 
     157                        writers.remove(clientInfos.getClientId() + clientInfos.getWebAppId()); 
    158158                        writer.stop(); 
    159159                    } 
Note: See TracChangeset for help on using the changeset viewer.