Log is not initialized when using command lines early enough, so dump to serverapi.logger.
This commit is contained in:
parent
caf3c662eb
commit
27de182ef9
1 changed files with 3 additions and 3 deletions
|
|
@ -483,7 +483,7 @@ namespace TShockAPI
|
||||||
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
||||||
{
|
{
|
||||||
SavePath = path;
|
SavePath = path;
|
||||||
Log.ConsoleInfo("Config path has been set to " + path);
|
ServerApi.LogWriter.PluginWriteLine(this, "Config path has been set to " + path, TraceLevel.Info);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -492,7 +492,7 @@ namespace TShockAPI
|
||||||
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
||||||
{
|
{
|
||||||
Main.WorldPath = path;
|
Main.WorldPath = path;
|
||||||
Log.ConsoleInfo("World path has been set to " + path);
|
ServerApi.LogWriter.PluginWriteLine(this, "World path has been set to " + path, TraceLevel.Info);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -501,7 +501,7 @@ namespace TShockAPI
|
||||||
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
if (path.IndexOfAny(Path.GetInvalidPathChars()) == -1)
|
||||||
{
|
{
|
||||||
LogPath = path;
|
LogPath = path;
|
||||||
Log.ConsoleInfo("Log path has been set to " + path);
|
ServerApi.LogWriter.PluginWriteLine(this, "Log path has been set to " + path, TraceLevel.Info);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue