Changeset 14261 for branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
- Timestamp:
- 08/20/16 10:45:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs
r14252 r14261 56 56 } 57 57 58 public void MakeLog(PeerInfo source, string msg) {59 try {60 // TODO61 lock (logLock) {62 File.AppendAllText("Log.txt", string.Concat(source.IpAddress, ":", source.Port, ",", source.ProblemInstance, ",", msg, Environment.NewLine));63 }64 }65 catch {66 //Nothing to do because maybe called from adderror67 }68 }69 70 58 public void UpdateHeartbeat(PeerInfo source) { 71 59 try { … … 102 90 103 91 private void AddError(string source, Exception ex) { 104 MakeLog(new PeerInfo() { ProblemInstance = "ContactServer Error at " + source }, ex.Message); 92 105 93 } 106 94
Note: See TracChangeset
for help on using the changeset viewer.