dheerusri324 opened a new pull request, #7300:
URL: https://github.com/apache/hop/pull/7300

   **Fixes #7297**
   
   ### Description
   This PR resolves the issue where running pipelines via the CLI 
(`hop-run.bat` / `hop-run.sh`) results in standard error (`stderr`) being 
flooded with `INFO` messages from the Microsoft SQL Server JDBC driver 
(`com.microsoft.sqlserver.jdbc.TDSTokenHandler`). 
   
   Because the MSSQL driver utilizes standard `java.util.logging` (JUL), its 
default `ConsoleHandler` routes `INFO` level logs directly to `System.err`. 
This creates significant noise when users attempt to redirect real errors to 
dedicated log files (e.g., `2> error.log`).
   
   **What changed:**
   * Added a `silenceJulJdbcLoggers()` method call as the very first execution 
step in `HopRun.main()`, immediately preceding `HopEnvironment.init()`.
   * This sets the `com.microsoft.sqlserver.jdbc` JUL logger strictly to the 
`WARNING` level, effectively neutralizing the spam before any database driver 
classes are loaded.
   
   **Architectural Rationale:**
   While implementing the `jul-to-slf4j` bridge is a common workaround for JUL 
spam, it was intentionally avoided here. Apache Hop utilizes `slf4j-nop` (which 
discards SLF4J output natively) in favor of its custom `HopLogStore`. 
Additionally, the bridge is not a declared Maven dependency in the engine 
module. Directly targeting the noisy JUL logger level is a zero-dependency, 
surgical fix that avoids unnecessary abstraction overhead.
   
   ------------------------
   
   Thank you for your contribution! Follow this checklist to help us 
incorporate your contribution quickly and easily:
   - [x] Run `mvn clean install apache-rat:check` to make sure basic checks 
pass. A more thorough check will be performed on your pull request 
automatically.
   - [x] If you have a group of commits related to the same change, please 
squash your commits into one and force push your branch using `git rebase -i`.
   - [x] Mention the appropriate issue in your description (for example: 
`addresses #123`), if applicable.
   
   To make clear that you license your contribution under the [Apache License 
Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   you have to acknowledge this by using the following check-box.
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   - [ ] In any other case, please file an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).


-- 
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