static void LogResponse(Handler.Response response, ILog log) { if (response.AsyncLog.Entries.Count() > 0) { log.Write("Log entries written before this Amnesia command:"); foreach (string entry in response.AsyncLog.Entries) { log.Write(entry); } } foreach (string entry in response.Log.Entries) { log.Write(entry); } }
void LogResponse(Handler.Response response) { LogResponse(response, log); }