1
0
Fork 0
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:
Starbeamrainbowlabs 2017-07-23 19:43:33 +01:00
parent fddfa31939
commit 02a527d6b4
3 changed files with 5 additions and 5 deletions

View file

@ -100,7 +100,7 @@ namespace Nibriboard
string rawCommand = await source.ReadLineAsync();
string[] commandParts = rawCommand.Split(" \t".ToCharArray());
Console.WriteLine("[CommandConsole] Client executing {0}", rawCommand);
Log.WriteLine("[CommandConsole] Client executing {0}", rawCommand);
try
{

View file

@ -269,10 +269,6 @@ namespace Nibriboard.RippleSpace
{
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);
}
}

View file

@ -122,6 +122,8 @@ namespace Nibriboard.RippleSpace
public async Task Save()
{
Stopwatch timer = Stopwatch.StartNew();
// Save the planes to disk
List<Task> planeSavers = new List<Task>();
foreach(Plane item in Planes)
@ -147,6 +149,8 @@ namespace Nibriboard.RippleSpace
}
}
destination.Close();
Log.WriteLine("[Command/Save] Save complete in {0}ms", timer.ElapsedMilliseconds);
}
public async Task<RippleSpaceManager> FromFile(string filename)