Skip to content
Commit 75dd4427 authored by Jinu Joy Thomas's avatar Jinu Joy Thomas Committed by Deepak Kodihalli
Browse files

pldmd: add runtime switch to toggle debug logs



Currently the pldm daemon has a way to enable verbose logging via a
configure flag, however, a runtime verbose command line argument will
prove more helpful since that way the daemon can quickly be restarted to
enable/disable verbose logging without having to rebuild it.

Usage:
pldmd -v/--verbose $VERBOSE, where $VERBOSE has value 0 being for no
verbosity and 1 being full verbosity.
No option specified will have $VERBOSE value defaulted to 0.

Tested:
Without verbosity option (verbosity disabled by default)
root@witherspoon:/tmp# ./pldmd &
[1] 2274

With verbosity disabled
root@witherspoon:/tmp# ./pldmd --verbose 0 &
[1] 2275

With verbosity enabled
root@witherspoon:/tmp# ./pldmd --verbose 1 &
[1] 2276

with verbosity value error
root@witherspoon:/tmp# ./pldmd --verbose 3 &
[1] 2277
root@witherspoon:/tmp# Usage: ./pldmd [options]
Options:
  --verbose=<0/1>  0 - Disable verbosity, 1 - Enable verbosity

Signed-off-by: default avatarJinu Joy Thomas <jinu.joy.thomas@in.ibm.com>
Change-Id: I48b1a0e919bc87f732e3c87f40225e0a63b727aa
parent c3d20895
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment