1.1 --- a/org/sonews/util/Stats.java Thu Aug 20 21:31:03 2009 +0200
1.2 +++ b/org/sonews/util/Stats.java Sun Aug 29 17:03:21 2010 +0200
1.3 @@ -59,25 +59,26 @@
1.4 */
1.5 private void addEvent(byte type, String groupname)
1.6 {
1.7 - if(Config.inst().get(Config.EVENTLOG, true))
1.8 + try
1.9 {
1.10 - Channel group = Channel.getByName(groupname);
1.11 - if(group != null)
1.12 + if (Config.inst().get(Config.EVENTLOG, true))
1.13 {
1.14 - try
1.15 +
1.16 + Channel group = Channel.getByName(groupname);
1.17 + if (group != null)
1.18 {
1.19 StorageManager.current().addEvent(
1.20 - System.currentTimeMillis(), type, group.getInternalID());
1.21 + System.currentTimeMillis(), type, group.getInternalID());
1.22 }
1.23 - catch(StorageBackendException ex)
1.24 - {
1.25 - ex.printStackTrace();
1.26 - }
1.27 - }
1.28 + }
1.29 else
1.30 {
1.31 Log.get().info("Group " + groupname + " does not exist.");
1.32 }
1.33 + }
1.34 + catch (StorageBackendException ex)
1.35 + {
1.36 + ex.printStackTrace();
1.37 }
1.38 }
1.39