From 8527f23c59674cdf89c8808c88f3e77a11a291a2 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 28 Nov 2008 21:09:20 +0000
Subject: * Stop console misleadingly reporting an error if it cannot find a
startup commands file
---
OpenSim/Region/Application/OpenSim.cs | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
(limited to 'OpenSim/Region/Application/OpenSim.cs')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 1999737..64989ea 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -170,14 +170,15 @@ namespace OpenSim
}
///
- ///
+ /// Run an optional startup list of commands
///
///
private void RunCommandScript(string fileName)
- {
- m_log.Info("[COMMANDFILE]: Running " + fileName);
+ {
if (File.Exists(fileName))
{
+ m_log.Info("[COMMANDFILE]: Running " + fileName);
+
StreamReader readFile = File.OpenText(fileName);
string currentCommand;
while ((currentCommand = readFile.ReadLine()) != null)
@@ -189,10 +190,6 @@ namespace OpenSim
}
}
}
- else
- {
- m_log.Error("[COMMANDFILE]: Command script missing. Can not run commands");
- }
}
private static void PrintFileToConsole(string fileName)
--
cgit v1.1