Cleanup logging flag for agent
Still allow nil to enable logging
Merge pull request #62 from martinb3/master

Cleanup logging flag for agent