static void MyHandler(object sender, UnhandledExceptionEventArgs args) { Logging.DisablePrimaryWriting(true); Exception e = (Exception)args.ExceptionObject; Logging.LogCriticalException("SYSTEM CRITICAL EXCEPTION: " + e.ToString()); ButterflyEnvironment.SendMassMessage("A fatal error crashed the server, server shutting down."); ButterflyEnvironment.PreformShutDown(true); }
private static void MyHandler(object sender, UnhandledExceptionEventArgs args) { Logging.DisablePrimaryWriting(true); Logging.LogCriticalException("SYSTEM CRITICAL EXCEPTION: " + ((Exception)args.ExceptionObject).ToString()); ButterflyEnvironment.PreformShutDown(true); }