Fix enabled/disabled logic for event logging in echo

Change-Id: I5dbf939a0651f5c1e97f896d5325437a5fc32b54