Fixed logging in release.
Quick hack for switching static/dynamic shadows.