示例#1
0
        static void Main(string[] args)
        {
            Rollbar.InitRollbar();

            Console.WriteLine(CommandLine.Text.HeadingInfo.Default + Environment.NewLine + CommandLine.Text.CopyrightInfo.Default + Environment.NewLine);

            Internationalization.Init();

            try
            {
                Options.Arguments = args;

                ParseCommandLine(args);

                if (Updater.IsUpdateAvailable)
                {
                    Updater.PrintNotification();
                }
            }
            catch (Exception e)
            {
                bool sentToRollbar = Rollbar.Critical(e);

                Logger.UnknownFatal(e, sentToRollbar);
            }
        }
示例#2
0
        public void CheckRollbarTelemetry()
        {
            var rollbarSend = gothic.GothicINI.Read("rollbar_send", "GMBT");

            if (rollbarSend != "true")
            {
                Rollbar.Info("New user");

                gothic.GothicINI.Write("rollbar_send", "true", "GMBT");
            }
        }