[Fix-14895][API] Keep printing null if task log file not exist (#14912)
(cherry picked from commit 2f2884fd6b)
This commit is contained in:
parent
87d6092ef9
commit
3ef25e50cc
|
|
@ -233,9 +233,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