Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/02/11 18:42:44 (13 years ago)
Author:
ascheibe
Message:

#1233 slave: catch more errors and log them to the windows event log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave.WindowsService/3.3/ProjectInstaller.cs

    r6898 r6945  
    1515      base.OnAfterInstall(savedState);
    1616
     17      //try to create an event log     
     18      try {
     19        if (!System.Diagnostics.EventLog.SourceExists("HLHive")) {
     20          System.Diagnostics.EventLog.CreateEventSource("HLHive", "HiveSlave");
     21        }
     22      }
     23      catch { }
     24
    1725      //try to start the service after installation
    1826      using (var serviceController = new ServiceController(this.serviceInstaller1.ServiceName, Environment.MachineName)) {
Note: See TracChangeset for help on using the changeset viewer.