--- android/TrainInfoService/src/dk/thoerup/traininfoservice/StatisticsListener.java 2010/08/30 13:59:54 1021 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/StatisticsListener.java 2010/08/30 15:49:20 1022 @@ -23,6 +23,11 @@ log.info("StatisticsListener::contextInit called update_interval=" + update_interval); + if (! sce.getServletContext().getRealPath("/").startsWith("/home/app/") ) { + //if path not starts with /home/app then it is not running on a production server and we only collects stats on prod servers + return; + } + if ( update_interval > 0 ) { timer = new Timer();