fix warning in conditional compilation (--disable-logger)