Patch for logging import