Minor logging improvement, saving incoming data for debugging

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-03-21 17:04:25 +01:00
parent e693dc0070
commit 8662e75abe
2 changed files with 5 additions and 6 deletions

View file

@ -1,6 +1,5 @@
/* ----------------------------------------------------------------------------
Question Server
Question Server
GitLab: <https://gitlab.com/YourFriendlyNeighborhoodDealer/question-node-server>
This program is free software: you can redistribute it and/or modify
@ -269,10 +268,10 @@ function ProcessIncomingRequest(data) {
try {
let towrite = logger.GetDateString() + "\n";
towrite += "------------------------------------------------------\n";
towrite += "------------------------------------------------------------------------------\n";
towrite += data
towrite += "\n------------------------------------------------------\n";
utils.WriteFile(towrite, recDataFile);
towrite += "\n------------------------------------------------------------------------------\n";
utils.AppendToFile(towrite, recDataFile);
} catch (e) {
logger.log("Error writing recieved data.");
}