[Fix-14895][API] Keep printing null if task log file not exist (#14912)

(cherry picked from commit 2f2884fd6b)
This commit is contained in:
Aaron Wang 2023-09-19 18:29:33 +08:00 committed by Jay Chung
parent 87d6092ef9
commit 3ef25e50cc
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}