[Improvementation](stream-load) improve streamLoadPut log warning detail (#33535)

improve streamLoadPut log warning detail
This commit is contained in:
Pxl
2024-04-11 18:39:48 +08:00
committed by yiguolei
parent 911f61c68d
commit 883f0a96c4

View File

@ -1894,11 +1894,11 @@ public class FrontendServiceImpl implements FrontendService.Iface {
}
}
} catch (UserException e) {
LOG.warn("failed to get stream load plan: {}", e.getMessage());
LOG.warn("failed to get stream load plan, label: {}", request.getLabel(), e);
status.setStatusCode(TStatusCode.ANALYSIS_ERROR);
status.addToErrorMsgs(e.getMessage());
} catch (Throwable e) {
LOG.warn("catch unknown result.", e);
LOG.warn("stream load catch unknown result, label: {}", request.getLabel(), e);
status.setStatusCode(TStatusCode.INTERNAL_ERROR);
status.addToErrorMsgs(e.getClass().getSimpleName() + ": " + Strings.nullToEmpty(e.getMessage()));
return result;