write html to file for debugging

This commit is contained in:
Hylke Bons 2011-07-16 00:11:14 +01:00
parent 992c1a9b3c
commit 2efba6bac7

View file

@ -458,8 +458,14 @@ namespace SparkleShare {
event_log += day_entry.Replace ("<!-- $day-entry-content -->", event_entries);
}
return event_log_html.Replace ("<!-- $event-log-content -->", event_log)
string html = event_log_html.Replace ("<!-- $event-log-content -->", event_log)
.Replace ("<!-- $username -->", UserName);
System.IO.StreamWriter file = new System.IO.StreamWriter (Path.Combine (SparklePaths.SparkleConfigPath, "log-debug.html"));
file.WriteLine (html);
file.Close ();
return html;
}