Fixes logging in the core module