mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hg cosmetics: don't log empty messages
This commit is contained in:
@@ -198,21 +198,25 @@ public final class HgCommandExecutor {
|
||||
}
|
||||
|
||||
// log output if needed
|
||||
if (!myIsSilent && myShowOutput) {
|
||||
LOG.info(result.getRawOutput());
|
||||
myVcs.showMessageInConsole(result.getRawOutput(), ConsoleViewContentType.SYSTEM_OUTPUT.getAttributes());
|
||||
}
|
||||
else {
|
||||
LOG.debug(result.getRawOutput());
|
||||
if (!result.getRawOutput().isEmpty()) {
|
||||
if (!myIsSilent && myShowOutput) {
|
||||
LOG.info(result.getRawOutput());
|
||||
myVcs.showMessageInConsole(result.getRawOutput(), ConsoleViewContentType.SYSTEM_OUTPUT.getAttributes());
|
||||
}
|
||||
else {
|
||||
LOG.debug(result.getRawOutput());
|
||||
}
|
||||
}
|
||||
|
||||
// log error
|
||||
if (!myIsSilent) {
|
||||
LOG.info(result.getRawError());
|
||||
myVcs.showMessageInConsole(result.getRawError(), ConsoleViewContentType.ERROR_OUTPUT.getAttributes());
|
||||
}
|
||||
else {
|
||||
LOG.debug(result.getRawError());
|
||||
if (!result.getRawError().isEmpty()) {
|
||||
if (!myIsSilent) {
|
||||
LOG.info(result.getRawError());
|
||||
myVcs.showMessageInConsole(result.getRawError(), ConsoleViewContentType.ERROR_OUTPUT.getAttributes());
|
||||
}
|
||||
else {
|
||||
LOG.debug(result.getRawError());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user