Kaynağa Gözat

DPRelay: log creating and freeing relay flows

ambrop7 15 yıl önce
ebeveyn
işleme
42efd132d9
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      client/DPRelay.c

+ 3 - 1
client/DPRelay.c

@@ -64,6 +64,8 @@ static struct DPRelay_flow * create_flow (DPRelaySource *src, DPRelaySink *sink,
         DataProtoLocalSource_Attach(&flow->dpls, sink->dest);
         DataProtoLocalSource_Attach(&flow->dpls, sink->dest);
     }
     }
     
     
+    BLog(BLOG_INFO, "relay flow %d->%d: created", (int)src->source_id, (int)sink->dest_id);
+    
     return flow;
     return flow;
     
     
 fail1:
 fail1:
@@ -99,7 +101,7 @@ static void free_flow (struct DPRelay_flow *flow)
 
 
 static void flow_inactivity_handler (struct DPRelay_flow *flow)
 static void flow_inactivity_handler (struct DPRelay_flow *flow)
 {
 {
-    BLog(BLOG_ERROR, "relay flow %d->%d: timed out", (int)flow->src->source_id, (int)flow->sink->dest_id);
+    BLog(BLOG_INFO, "relay flow %d->%d: timed out", (int)flow->src->source_id, (int)flow->sink->dest_id);
     
     
     free_flow(flow);
     free_flow(flow);
 }
 }