mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
Fiddle with logging
This commit is contained in:
parent
fddfa31939
commit
02a527d6b4
3 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ namespace Nibriboard
|
||||||
|
|
||||||
string rawCommand = await source.ReadLineAsync();
|
string rawCommand = await source.ReadLineAsync();
|
||||||
string[] commandParts = rawCommand.Split(" \t".ToCharArray());
|
string[] commandParts = rawCommand.Split(" \t".ToCharArray());
|
||||||
Console.WriteLine("[CommandConsole] Client executing {0}", rawCommand);
|
Log.WriteLine("[CommandConsole] Client executing {0}", rawCommand);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -269,10 +269,6 @@ namespace Nibriboard.RippleSpace
|
||||||
{
|
{
|
||||||
foreach(string nextChunkFile in chunkFiles)
|
foreach(string nextChunkFile in chunkFiles)
|
||||||
{
|
{
|
||||||
Console.WriteLine("[Command/Save] Packing {0} as {1}",
|
|
||||||
nextChunkFile,
|
|
||||||
$"{Name}/{Path.GetFileName(nextChunkFile)}"
|
|
||||||
);
|
|
||||||
packer.Write($"{Name}/{Path.GetFileName(nextChunkFile)}", nextChunkFile);
|
packer.Write($"{Name}/{Path.GetFileName(nextChunkFile)}", nextChunkFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,8 @@ namespace Nibriboard.RippleSpace
|
||||||
|
|
||||||
public async Task Save()
|
public async Task Save()
|
||||||
{
|
{
|
||||||
|
Stopwatch timer = Stopwatch.StartNew();
|
||||||
|
|
||||||
// Save the planes to disk
|
// Save the planes to disk
|
||||||
List<Task> planeSavers = new List<Task>();
|
List<Task> planeSavers = new List<Task>();
|
||||||
foreach(Plane item in Planes)
|
foreach(Plane item in Planes)
|
||||||
|
@ -147,6 +149,8 @@ namespace Nibriboard.RippleSpace
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
destination.Close();
|
destination.Close();
|
||||||
|
|
||||||
|
Log.WriteLine("[Command/Save] Save complete in {0}ms", timer.ElapsedMilliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<RippleSpaceManager> FromFile(string filename)
|
public async Task<RippleSpaceManager> FromFile(string filename)
|
||||||
|
|
Loading…
Reference in a new issue