Refactor so that the correct message is logged.

Change-Id: I07320589f67027d8934ab3985886537b54203853
Reviewed-on: http://review.couchbase.org/39759
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>