Technoboy- commented on a change in pull request #1702: Fix bug: Use
try-with-resources or close this "Statement" in a "finally" clause.
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/1702#discussion_r367888150
##########
File path:
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ScriptRunner.java
##########
@@ -207,11 +197,11 @@ private void runScript(Connection conn, Reader reader)
throws IOException, SQLEx
}
} catch (SQLException e) {
- logger.error("Error executing: " + command.toString());
+ logger.error("Error executing: {}", command);
throw e;
} catch (IOException e) {
e.fillInStackTrace();
Review comment:
remove
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services