rconn: Log when a connection attempt starts.
authorBen Pfaff <blp@nicira.com>
Mon, 14 Jul 2008 20:31:42 +0000 (13:31 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 18 Jul 2008 21:07:03 +0000 (14:07 -0700)
This makes it easier to see what happened by viewing the log.

lib/rconn.c

index 1668ad9906cdf98e9a31724e0593f0e523e3ab38..db21b6c5a795ce875e31cb452d35db61f3f7dfd3 100644 (file)
@@ -132,6 +132,7 @@ rconn_run(struct rconn *rc)
         if (rc->reliable && time(0) >= rc->backoff_deadline) {
             int retval;
 
+            VLOG_WARN("%s: connecting...", rc->name);
             retval = vconn_open(rc->name, &rc->vconn);
             if (!retval) {
                 rc->backoff_deadline = time(0) + rc->backoff;