[Fix-14895][API] Keep printing null if task log file not exist (#14912)
This commit is contained in:
parent
9083f9d0e0
commit
2f2884fd6b
|
|
@ -261,7 +261,9 @@ public class LoggerServiceImpl extends BaseServiceImpl implements LoggerService
|
|||
log.error("Error while getting log from remote target", e);
|
||||
}
|
||||
}
|
||||
sb.append(logContent);
|
||||
if (logContent != null) {
|
||||
sb.append(logContent);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue