remove some useless NULL arguments

This commit is contained in:
UbitUmarov
2019-10-22 12:23:19 +01:00
parent d838a7e5c7
commit b98ad6c53c
11 changed files with 51 additions and 63 deletions

View File

@@ -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
// {

View File

@@ -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()

View File

@@ -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
{

View File

@@ -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);
}
}
}