Be a little more verbose before starting IKE_SA reauthentication
authorMartin Willi <martin@revosec.ch>
Wed, 22 Feb 2012 15:16:15 +0000 (16:16 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 5 Mar 2012 17:06:14 +0000 (18:06 +0100)
src/libcharon/sa/ike_sa.c

index 8fa49b3..2ff2661 100644 (file)
@@ -1553,14 +1553,21 @@ METHOD(ike_sa_t, reauth, status_t,
 
                        del = this->stats[STAT_DELETE];
                        now = time_monotonic(NULL);
-                       DBG1(DBG_IKE, "IKE_SA will timeout in %V", &now, &del);
+                       DBG1(DBG_IKE, "IKE_SA %s[%d] will timeout in %V",
+                                get_name(this), this->unique_id, &now, &del);
                        return FAILED;
                }
                else
                {
-                       DBG1(DBG_IKE, "reauthenticating actively");
+                       DBG0(DBG_IKE, "reauthenticating IKE_SA %s[%d] actively",
+                                get_name(this), this->unique_id);
                }
        }
+       else
+       {
+               DBG0(DBG_IKE, "reauthenticating IKE_SA %s[%d]",
+                        get_name(this), this->unique_id);
+       }
        task = (task_t*)ike_reauth_create(&this->public);
        this->task_manager->queue_task(this->task_manager, task);