Browse Source

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

3.2.1-prepare
Aaron Wang 1 year ago committed by GitHub
parent
commit
2f2884fd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/LoggerServiceImpl.java

2
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/LoggerServiceImpl.java

@ -261,7 +261,9 @@ public class LoggerServiceImpl extends BaseServiceImpl implements LoggerService
log.error("Error while getting log from remote target", e); log.error("Error while getting log from remote target", e);
} }
} }
if (logContent != null) {
sb.append(logContent); sb.append(logContent);
}
return sb.toString(); return sb.toString();
} }

Loading…
Cancel
Save