What are you trying to do here? IMO debug logging should work the same independent of the build type.