Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java][Test] Disable the debug log when running Java tests #38005

Closed
davisusanibar opened this issue Oct 4, 2023 · 0 comments · Fixed by #38006
Closed

[Java][Test] Disable the debug log when running Java tests #38005

davisusanibar opened this issue Oct 4, 2023 · 0 comments · Fixed by #38006

Comments

@davisusanibar
Copy link
Contributor

Describe the enhancement requested

Enhancement
By default the SLF4J root logger is assigned the DEBUG level. The proposal is to disable the debug log when running Java tests.

SLF4J Default BasicConfigurator Logging
...by default the root logger is assigned the DEBUG level...

Current Arrow Java Test modules configured with default Debug by SLF4J are

  • Memory Core
  • Memory Unsafe
  • Compression
  • Flight GRPC
  • Flight SQL
  • Algorithm
  • Avro

The following are some reasons why SLF4J Debug mode is enabled in testing modules

  1. If the current Memory Core module does not have a logback.xml or log4j2.xml configuration, then SLF4J assumes a Debug configuration by default.
  2. If Parent (Memory Core) has logback.xml and log4j2.xml configured, but Child (Memory Unsafe) does not, then Child Memory Unsafe is considered and configured in Debug mode by default by SLF4J.
  3. The same log debugging settings are enabled for: Compression, Flight GRPC/SQL, Algorithm and Avro.

Component(s)

Java

@kou kou changed the title [Java][Test]: Disable the debug log when running Java tests [Java][Test] Disable the debug log when running Java tests Oct 4, 2023
lidavidm pushed a commit that referenced this issue Oct 5, 2023
### Rationale for this change

To disable the debug log when running Java tests

### What changes are included in this PR?

Java Testing resource that configure SLF4J API and adapters.

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* Closes: #38005

Authored-by: David Susanibar Arce <dsusanibar@Voltron.local>
Signed-off-by: David Li <li.davidm96@gmail.com>
@lidavidm lidavidm added this to the 14.0.0 milestone Oct 5, 2023
JerAguilon pushed a commit to JerAguilon/arrow that referenced this issue Oct 23, 2023
…pache#38006)

### Rationale for this change

To disable the debug log when running Java tests

### What changes are included in this PR?

Java Testing resource that configure SLF4J API and adapters.

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* Closes: apache#38005

Authored-by: David Susanibar Arce <dsusanibar@Voltron.local>
Signed-off-by: David Li <li.davidm96@gmail.com>
loicalleyne pushed a commit to loicalleyne/arrow that referenced this issue Nov 13, 2023
…pache#38006)

### Rationale for this change

To disable the debug log when running Java tests

### What changes are included in this PR?

Java Testing resource that configure SLF4J API and adapters.

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* Closes: apache#38005

Authored-by: David Susanibar Arce <dsusanibar@Voltron.local>
Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss pushed a commit to dgreiss/arrow that referenced this issue Feb 19, 2024
…pache#38006)

### Rationale for this change

To disable the debug log when running Java tests

### What changes are included in this PR?

Java Testing resource that configure SLF4J API and adapters.

### Are these changes tested?

Yes

### Are there any user-facing changes?

No
* Closes: apache#38005

Authored-by: David Susanibar Arce <dsusanibar@Voltron.local>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants