fix #2849 Added exception details to warning logs for better error debugging.

This commit is contained in:
Shinsuke Sugaya 2024-10-20 11:08:03 +09:00
parent e8944daf68
commit c24fc41cc5

View file

@ -784,7 +784,7 @@ public class SearchEngineClient implements Client {
}
}
} catch (final Exception e) {
logger.warn("Failed to parse {}", dataPath);
logger.warn("Failed to parse {}", dataPath, e);
}
return StringUtil.EMPTY;
});
@ -793,7 +793,7 @@ public class SearchEngineClient implements Client {
logger.warn("Failed to register {}: {}", dataPath, response.buildFailureMessage());
}
} catch (final Exception e) {
logger.warn("Failed to create {} mapping.", configIndex);
logger.warn("Failed to create {} mapping.", configIndex, e);
}
}