diff options
Diffstat (limited to 'OpenSim/Framework/Console/RemoteConsole.cs')
-rwxr-xr-x | OpenSim/Framework/Console/RemoteConsole.cs | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs index 8dc7333..889df36 100755 --- a/OpenSim/Framework/Console/RemoteConsole.cs +++ b/OpenSim/Framework/Console/RemoteConsole.cs | |||
@@ -190,12 +190,34 @@ namespace OpenSim.Framework.Console | |||
190 | m_Server.AddHTTPHandler("/SessionCommand/", HandleHttpSessionCommand); | 190 | m_Server.AddHTTPHandler("/SessionCommand/", HandleHttpSessionCommand); |
191 | } | 191 | } |
192 | 192 | ||
193 | public override void Output(string format, string level = null, params object[] components) | 193 | public override void Output(string format, params object[] components) |
194 | { | 194 | { |
195 | if (components.Length == 0) | 195 | string level = null; |
196 | Output(format, level, false, false, false); | 196 | if (components != null && components.Length > 0) |
197 | { | ||
198 | if (components[0] == null || components[0] is ConsoleLevel) | ||
199 | { | ||
200 | if (components[0] is ConsoleLevel) | ||
201 | level = ((ConsoleLevel)components[0]).ToString(); | ||
202 | |||
203 | if (components.Length > 1) | ||
204 | { | ||
205 | object[] tmp = new object[components.Length - 1]; | ||
206 | Array.Copy(components, 1, tmp, 0, components.Length - 1); | ||
207 | components = tmp; | ||
208 | } | ||
209 | else | ||
210 | components = null; | ||
211 | } | ||
212 | } | ||
213 | |||
214 | string text; | ||
215 | if (components == null || components.Length == 0) | ||
216 | text = format; | ||
197 | else | 217 | else |
198 | Output(String.Format(format, components), level, false, false, false); | 218 | text = String.Format(format, components); |
219 | |||
220 | Output(text, level, false, false, false); | ||
199 | } | 221 | } |
200 | 222 | ||
201 | protected void Output(string text, string level, bool isPrompt, bool isCommand, bool isInput) | 223 | protected void Output(string text, string level, bool isPrompt, bool isCommand, bool isInput) |