avoid redundant steps in turn_off_gateway_logging

Change-Id: I9e839ffd49af2b68a088e4369ad4aa2c7ccd86f8
Reviewed-on: http://review.couchbase.org/37148
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>