Failsafe avoid logging when in test mode
Merge pull request #1848 from DynamoDS/analytics-track

Failsafe avoid logging when in test mode