Prevent log in release mode.
Merge pull request #1 from Screon/patch-1

Prevent log in release mode.