Changeset 7157


Ignore:
Timestamp:
12/08/11 19:24:07 (10 years ago)
Author:
ascheibe
Message:

#1672 improved event logging in the Hive service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Logger.cs

    r6983 r7157  
    4747    public Logger(string name, string source) {
    4848      try {
    49         if (!EventLog.SourceExists(source)) {
    50           EventLog.CreateEventSource(source, name);
    51         }
    5249        log = new EventLog(name);
    5350        log.Source = source;
    5451      }
    55       catch (SecurityException) { }
     52      catch (Exception) { }
    5653    }
    5754
     
    6259        }
    6360      }
    64       catch (SecurityException) { }
     61      catch (Exception) { }
    6562    }
    6663
     
    7168        }
    7269      }
    73       catch (SecurityException) { }
     70      catch (Exception) { }
    7471    }
    7572  }
Note: See TracChangeset for help on using the changeset viewer.