TyrantLucifer commented on code in PR #3805:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3805#discussion_r1057119640


##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/sink/writer/TextWriteStrategy.java:
##########
@@ -115,7 +115,7 @@ private FSDataOutputStream getOrCreateOutputStream(@NonNull 
String filePath) {
                 beingWrittenOutputStream.put(filePath, fsDataOutputStream);
                 isFirstWrite.put(filePath, true);
             } catch (IOException e) {
-                log.error("can not get output file stream");
+                log.error("can not get output file stream", e);
                 throw new 
FileConnectorException(CommonErrorCode.FILE_OPERATION_FAILED,
                         String.format("Open file output stream [%s] failed", 
filePath), e);

Review Comment:
   ```suggestion
                   throw new 
FileConnectorException(CommonErrorCode.FILE_OPERATION_FAILED,
                           String.format("Open file output stream [%s] failed", 
filePath), e);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to