Debugging

This commit is contained in:
Falkvinge
2017-05-16 12:01:02 +02:00
parent cc40100824
commit cc911b7212
3 changed files with 15 additions and 5 deletions
+3
View File
@@ -56,6 +56,7 @@ namespace Swarmops.Frontend.Socket
private void ProcessMetapackage(string xmlData)
{
Console.WriteLine("Decoding XML: " + xmlData);
SocketMessage message = SocketMessage.FromXml(xmlData);
// Most should just be sent straight to backend. Some could possibly be processed already here.
@@ -68,6 +69,7 @@ namespace Swarmops.Frontend.Socket
default:
// we're not handling here, send to backend
Console.WriteLine(" - sending " + message.MessageType + " upstream");
FrontendLoop.SendMessageUpstream(message);
break;
}
@@ -84,6 +86,7 @@ namespace Swarmops.Frontend.Socket
if (Authority.IsSystemAuthorityTokenValid(authBase64))
{
_authority = null; // System authority
Console.WriteLine(" - - valid system authentication token");
}
else
{