예제 #1
0
파일: Program.cs 프로젝트: nightwolf93/Bfly
        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);
        }
예제 #2
0
 private static void MyHandler(object sender, UnhandledExceptionEventArgs args)
 {
     Logging.DisablePrimaryWriting(true);
     Logging.LogCriticalException("SYSTEM CRITICAL EXCEPTION: " + ((Exception)args.ExceptionObject).ToString());
     ButterflyEnvironment.PreformShutDown(true);
 }