From b98ad6c53c484aa2744c5040c9f29c475c3d4f72 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 22 Oct 2019 12:23:19 +0100 Subject: remove some useless NULL arguments --- OpenSim/Framework/Monitoring/ChecksManager.cs | 2 +- OpenSim/Framework/Monitoring/StatsLogger.cs | 4 ++-- OpenSim/Framework/Monitoring/StatsManager.cs | 2 +- OpenSim/Framework/Monitoring/WorkManager.cs | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Framework/Monitoring') diff --git a/OpenSim/Framework/Monitoring/ChecksManager.cs b/OpenSim/Framework/Monitoring/ChecksManager.cs index 100b748..f719099 100755 --- a/OpenSim/Framework/Monitoring/ChecksManager.cs +++ b/OpenSim/Framework/Monitoring/ChecksManager.cs @@ -88,7 +88,7 @@ namespace OpenSim.Framework.Monitoring con.Output("check categories available are:"); foreach (string category in RegisteredChecks.Keys) - con.Output(" {0}", null, category); + con.Output(" {0}", category); } // else // { diff --git a/OpenSim/Framework/Monitoring/StatsLogger.cs b/OpenSim/Framework/Monitoring/StatsLogger.cs index 4369b36..e87c188 100755 --- a/OpenSim/Framework/Monitoring/StatsLogger.cs +++ b/OpenSim/Framework/Monitoring/StatsLogger.cs @@ -79,7 +79,7 @@ namespace OpenSim.Framework.Monitoring if (cmd[2] == "start") { Start(); - con.Output("Now recording all stats to file every {0}ms", null, m_statsLogIntervalMs); + con.Output("Now recording all stats to file every {0}ms", m_statsLogIntervalMs); } else if (cmd[2] == "stop") { @@ -106,7 +106,7 @@ namespace OpenSim.Framework.Monitoring sw.WriteLine(line); } - MainConsole.Instance.Output("Stats saved to file {0}", null, path); + MainConsole.Instance.Output("Stats saved to file {0}", path); } public static void Start() diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index 57b9474..9646bd7 100755 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs @@ -117,7 +117,7 @@ namespace OpenSim.Framework.Monitoring { con.Output("Statistic categories available are:"); foreach (string category in RegisteredStats.Keys) - con.Output(" {0}", null, category); + con.Output(" {0}", category); } else { diff --git a/OpenSim/Framework/Monitoring/WorkManager.cs b/OpenSim/Framework/Monitoring/WorkManager.cs index f6e0799..ce639b9 100755 --- a/OpenSim/Framework/Monitoring/WorkManager.cs +++ b/OpenSim/Framework/Monitoring/WorkManager.cs @@ -224,14 +224,14 @@ namespace OpenSim.Framework.Monitoring } else if (subCommand == "status") { - MainConsole.Instance.Output("Job engine running: {0}", null, JobEngine.IsRunning); + MainConsole.Instance.Output("Job engine running: {0}", JobEngine.IsRunning); JobEngine.Job job = JobEngine.CurrentJob; - MainConsole.Instance.Output("Current job {0}", null, job != null ? job.Name : "none"); + MainConsole.Instance.Output("Current job {0}", job != null ? job.Name : "none"); MainConsole.Instance.Output( - "Jobs waiting: {0}", null, JobEngine.IsRunning ? JobEngine.JobsWaiting.ToString() : "n/a"); - MainConsole.Instance.Output("Log Level: {0}", null, JobEngine.LogLevel); + "Jobs waiting: {0}", JobEngine.IsRunning ? JobEngine.JobsWaiting.ToString() : "n/a"); + MainConsole.Instance.Output("Log Level: {0}", JobEngine.LogLevel); } else if (subCommand == "log") { @@ -246,12 +246,12 @@ namespace OpenSim.Framework.Monitoring // if (ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, args[4], out logLevel)) // { JobEngine.LogLevel = logLevel; - MainConsole.Instance.Output("Set debug log level to {0}", null, JobEngine.LogLevel); + MainConsole.Instance.Output("Set debug log level to {0}", JobEngine.LogLevel); // } } else { - MainConsole.Instance.Output("Unrecognized job engine subcommand {0}", null, subCommand); + MainConsole.Instance.Output("Unrecognized job engine subcommand {0}", subCommand); } } } -- cgit v1.1