Skip to content

Commit

Permalink
fix(plugin-logging): adjust error logging in plugin registry (datahub…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Dec 10, 2024
1 parent e4ea993 commit 43c8460
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.linkedin.metadata.models.registry.config.LoadStatus;
import com.linkedin.util.Pair;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.file.Files;
Expand Down Expand Up @@ -204,8 +203,8 @@ private void loadOneRegistry(
loadResultBuilder.plugins(entityRegistry.getPluginFactory().getPluginLoadResult());

log.info("Loaded registry {} successfully", entityRegistry);
} catch (RuntimeException | EntityRegistryException | IOException e) {
log.debug("{}: Failed to load registry {} with {}", this, registryName, e.getMessage());
} catch (Exception | EntityRegistryException e) {
log.error("{}: Failed to load registry {} with {}", this, registryName, e.getMessage(), e);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
Expand Down

0 comments on commit 43c8460

Please sign in to comment.