Prevent log in release mode.