How about:

  log.trace("Failed preloading dependency %s of module %s: %s", moduleDependency.getIdentifier(), getIdentifier(), ex);

?