Skip to content

Commit

Permalink
[FLINK-22054][dist] Suppress the verbose log in kubernetes informer
Browse files Browse the repository at this point in the history
This closes apache#15501.
  • Loading branch information
yittg authored and wangyang0918 committed Jul 23, 2021
1 parent 9c7e300 commit dfb4c00
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flink-dist/src/main/flink-bin/conf/log4j-console.properties
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ appender.rolling.strategy.max = ${env:MAX_LOG_FILE_NUMBER:-10}
# Suppress the irrelevant (wrong) warnings from the Netty channel handler
logger.netty.name = org.jboss.netty.channel.DefaultChannelPipeline
logger.netty.level = OFF

# Suppress the verbose log in kubernetes informer
logger.kube.name = io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher
logger.kube.level = ERROR
4 changes: 4 additions & 0 deletions flink-dist/src/main/flink-bin/conf/log4j-session.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ logger.runtimeutils.name= org.apache.flink.runtime.util.ZooKeeperUtils
logger.runtimeutils.level = WARN
logger.runtimeleader.name = org.apache.flink.runtime.leaderretrieval.ZooKeeperLeaderRetrievalDriver
logger.runtimeleader.level = WARN

# Suppress the verbose log in kubernetes informer
logger.kube.name = io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher
logger.kube.level = ERROR
4 changes: 4 additions & 0 deletions flink-dist/src/main/flink-bin/conf/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ appender.main.strategy.max = ${env:MAX_LOG_FILE_NUMBER:-10}
# Suppress the irrelevant (wrong) warnings from the Netty channel handler
logger.netty.name = org.jboss.netty.channel.DefaultChannelPipeline
logger.netty.level = OFF

# Suppress the verbose log in kubernetes informer
logger.kube.name = io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher
logger.kube.level = ERROR
3 changes: 3 additions & 0 deletions flink-dist/src/main/flink-bin/conf/logback-console.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@

<!-- Suppress the irrelevant (wrong) warnings from the Netty channel handler -->
<logger name="org.jboss.netty.channel.DefaultChannelPipeline" level="ERROR"/>

<!-- Suppress the verbose log in kubernetes informer -->
<logger name="io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher" level="ERROR"/>
</configuration>
6 changes: 6 additions & 0 deletions flink-dist/src/main/flink-bin/conf/logback-session.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@
<appender-ref ref="file"/>
<appender-ref ref="console"/>
</root>

<!-- Suppress the verbose log in kubernetes informer -->
<logger name="io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher" level="ERROR">
<appender-ref ref="file"/>
<appender-ref ref="console"/>
</logger>
</configuration>
6 changes: 6 additions & 0 deletions flink-dist/src/main/flink-bin/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@
<logger name="org.jboss.netty.channel.DefaultChannelPipeline" level="ERROR">
<appender-ref ref="file"/>
</logger>

<!-- Suppress the verbose log in kubernetes informer -->
<logger name="io.fabric8.kubernetes.client.informers.cache.ReflectorWatcher" level="ERROR">
<appender-ref ref="file"/>
</logger>

</configuration>

0 comments on commit dfb4c00

Please sign in to comment.