1
0
Fork 0

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)