OSDN Git Service

block/gluster: add support for selecting debug logging level
authorJeff Cody <jcody@redhat.com>
Thu, 7 Apr 2016 21:24:19 +0000 (17:24 -0400)
committerJeff Cody <jcody@redhat.com>
Wed, 29 Jun 2016 02:52:45 +0000 (22:52 -0400)
commit7eac868a508cdbf4cccef5c2084941b63fa3aded
tree12886e844bba610712f473a988b1921b1842b8ad
parentff04198bf576beac5793c445c008ccc9d48f87d5
block/gluster: add support for selecting debug logging level

This adds commandline support for the logging level of the
gluster protocol driver, output to stdout.  The option is 'debug',
e.g.:

-drive filename=gluster://192.168.15.180/gv2/test.qcow2,debug=9

Debug levels are 0-9, with 9 being the most verbose, and 0 representing
no debugging output.  The default is the same as it was before, which
is a level of 4.  The current logging levels defined in the gluster
source are:

    0 - None
    1 - Emergency
    2 - Alert
    3 - Critical
    4 - Error
    5 - Warning
    6 - Notice
    7 - Info
    8 - Debug
    9 - Trace

(From: glusterfs/logging.h)

Reviewed-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/gluster.c