Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/20/16 10:45:48 (8 years ago)
Author:
thasling
Message:

#2615:
re-enabled log in P2PMigrationAnalyzer
made code formatings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.ContactServer/ContactServiceImpl.cs

    r14252 r14261  
    5656    }
    5757
    58     public void MakeLog(PeerInfo source, string msg) {
    59       try {
    60         // TODO
    61         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 adderror
    67       }
    68     }
    69 
    7058    public void UpdateHeartbeat(PeerInfo source) {
    7159      try {
     
    10290
    10391    private void AddError(string source, Exception ex) {
    104       MakeLog(new PeerInfo() { ProblemInstance = "ContactServer  Error at " + source }, ex.Message);
     92
    10593    }
    10694
Note: See TracChangeset for help on using the changeset viewer.