Skip to content

Commit 896a1c0

Browse files
committed
fix(plugin-logging): adjust error logging in plugin registry
1 parent 4811de1 commit 896a1c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

entity-registry/src/main/java/com/linkedin/metadata/models/registry/PluginEntityRegistryLoader.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.linkedin.metadata.models.registry.config.LoadStatus;
77
import com.linkedin.util.Pair;
88
import java.io.File;
9-
import java.io.IOException;
109
import java.io.PrintWriter;
1110
import java.io.StringWriter;
1211
import java.nio.file.Files;
@@ -204,8 +203,8 @@ private void loadOneRegistry(
204203
loadResultBuilder.plugins(entityRegistry.getPluginFactory().getPluginLoadResult());
205204

206205
log.info("Loaded registry {} successfully", entityRegistry);
207-
} catch (RuntimeException | EntityRegistryException | IOException e) {
208-
log.debug("{}: Failed to load registry {} with {}", this, registryName, e.getMessage());
206+
} catch (Exception | EntityRegistryException e) {
207+
log.error("{}: Failed to load registry {} with {}", this, registryName, e.getMessage(), e);
209208
StringWriter sw = new StringWriter();
210209
PrintWriter pw = new PrintWriter(sw);
211210
e.printStackTrace(pw);

0 commit comments

Comments
 (0)