How to enable debug mode for Doppler
search cancel

How to enable debug mode for Doppler

book

Article ID: 293579

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

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

 


Environment


Resolution

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.