fix #2849 Added exception details to warning logs for better error debugging.
This commit is contained in:
parent
e8944daf68
commit
c24fc41cc5
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue