Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Jan 13, 2022

What changes were proposed in this pull request?

This patch fixes the check of repl's log level. So we can correctly know if the repl class is set with log level or not.

Why are the changes needed?

Same as the check in SparkShellLoggingFilter, getLevel cannot be used anymore to check if the log level is set or not for a logger in log4j2.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manual verified locally.

@github-actions github-actions bot added the CORE label Jan 13, 2022
@viirya viirya changed the title [SPARK-37887][Core] Check repl log level in correct way [SPARK-37887][Core] Fix the check of repl log levek Jan 13, 2022
@viirya viirya changed the title [SPARK-37887][Core] Fix the check of repl log levek [SPARK-37887][Core] Fix the check of repl log level Jan 13, 2022
@viirya
Copy link
Member Author

viirya commented Jan 13, 2022

cc @HyukjinKwon @dongjoon-hyun

@viirya viirya changed the title [SPARK-37887][Core] Fix the check of repl log level [SPARK-37887][CORE] Fix the check of repl log level Jan 13, 2022
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @viirya .

@viirya
Copy link
Member Author

viirya commented Jan 13, 2022

Thank you @dongjoon-hyun

@dongjoon-hyun
Copy link
Member

Merged to master. :)

@HyukjinKwon
Copy link
Member

Thanks!

dchvn pushed a commit to dchvn/spark that referenced this pull request Jan 19, 2022
### What changes were proposed in this pull request?

This patch fixes the check of repl's log level. So we can correctly know if the repl class is set with log level or not.

### Why are the changes needed?

Same as the check in `SparkShellLoggingFilter`, `getLevel` cannot be used anymore to check if the log level is set or not for a logger in log4j2.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual verified locally.

Closes apache#35198 from viirya/SPARK-37887.

Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
sumwale pushed a commit to TIBCOSoftware/snappy-spark that referenced this pull request Feb 9, 2022
### What changes were proposed in this pull request?

This patch fixes the check of repl's log level. So we can correctly know if the repl class is set with log level or not.

### Why are the changes needed?

Same as the check in `SparkShellLoggingFilter`, `getLevel` cannot be used anymore to check if the log level is set or not for a logger in log4j2.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual verified locally.

Closes apache#35198 from viirya/SPARK-37887.

Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
kazuyukitanimura pushed a commit to kazuyukitanimura/spark that referenced this pull request Aug 10, 2022
This patch fixes the check of repl's log level. So we can correctly know if the repl class is set with log level or not.

Same as the check in `SparkShellLoggingFilter`, `getLevel` cannot be used anymore to check if the log level is set or not for a logger in log4j2.

No

Manual verified locally.

Closes apache#35198 from viirya/SPARK-37887.

Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
asiunov pushed a commit to ascend-io/spark that referenced this pull request Aug 25, 2022
### What changes were proposed in this pull request?

This patch fixes the check of repl's log level. So we can correctly know if the repl class is set with log level or not.

### Why are the changes needed?

Same as the check in `SparkShellLoggingFilter`, `getLevel` cannot be used anymore to check if the log level is set or not for a logger in log4j2.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual verified locally.

Closes apache#35198 from viirya/SPARK-37887.

Authored-by: Liang-Chi Hsieh <viirya@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 1431a4a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants