How to enable Hazelcast debug logging for Spring Cloud Gateway Kubernetes
search cancel

How to enable Hazelcast debug logging for Spring Cloud Gateway Kubernetes

book

Article ID: 427304

calendar_today

Updated On:

Products

VMware Tanzu Spring Runtime

Issue/Introduction

How to enable Hazelcast debug logging for Spring Cloud Gateway Kubernetes

If Hazelcast fails to discover other Gateway pods or has an issue where it loses quorum then it may be necessary to enable debug logging in order further triage issue.

Environment

Spring Cloud Gateway for Kubernetes

Resolution

Please see the "Configure Gateway logging levels" section at https://techdocs.broadcom.com/us/en/vmware-tanzu/spring/spring-cloud-gateway-for-kubernetes/2-2/scg-k8s/developer-troubleshooting.html for specifics on enabling. 
 
Hazelcast debug can be enabled by setting - 
#logger.com.hazelcast=debug
There are additional more specific loggers (for cluster or partition)- 
#logger.com.hazelcast.cluster=debug
#logger.com.hazelcast.partition=debug

You can also enable Hazelcast debug logging, by adding the following entry to your 'env' in the SpringCloudGateway resource:

env:
- name: LOGGING_LEVEL_COM_HAZELCAST
value: DEBUG