mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
remove some useless NULL arguments
This commit is contained in:
@@ -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
|
||||
// {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user