Pivotal Knowledge Base

Follow

How to Enable Debug Mode for Doppler

Environment

Pivotal Cloud Foundry® (PCF) versions 1.6.x and 1.7.x

Purpose

This article discusses how to enable the debug mode for a Doppler.

Procedure

Follow the steps mentioned below to enable the debug mode for a Doppler:

  • "bosh ssh" to the doppler virtual machines (VMs).
  • Edit "/var/vcap/jobs/doppler/bin/doppler_ctl"
  • Change the following line:
chpst -u vcap:vcap /var/vcap/packages/doppler/doppler \
--config /var/vcap/jobs/doppler/config/doppler.json &

to

chpst -u vcap:vcap /var/vcap/packages/doppler/doppler --debug \
--config /var/vcap/jobs/doppler/config/doppler.json &
  • Run sudo monit restart doppler. Run watch monit summary and wait for the process to restart.
  • You should see log debug entries that look like the following:
{"timestamp":1463691844.591357231,"process_id":1460,"source":"doppler","log_level":"debug","message":"MessageRouter:MessageReceived","data":null,"file":"/var/vcap/data/compile/doppler/loggregator/src/doppler/sinkserver/message_router.go","line":44,"method":"doppler/sinkserver.(*MessageRouter).Start"}
where the "log_level" is "debug".

Impact

Enabling debug mode will impact the system performance and can also fill up the ephemeral disk. So, we strongly recommend using this only for the development and troubleshooting purpose.

Comments

Powered by Zendesk