logs should be enabled in debug build only