Bug 749823

Summary: RFE allow human readable debug levels for AXIS2_DEBUG_LEVEL
Product: Red Hat Enterprise MRG Reporter: Jon Thomas <jthomas>
Component: condor-aviaryAssignee: Pete MacKinnon <pmackinn>
Status: CLOSED CURRENTRELEASE QA Contact: Daniel Horák <dahorak>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: dahorak, esammons, matt, mkudlej, pmackinn, tstclair
Target Milestone: 2.3Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: condor-7.8.2-0.1 Doc Type: Enhancement
Doc Text:
Release Note Aviary has replaced the integer configuration values of AXIS2_DEBUG_LEVEL with string equivalents. The integer values defined by the Axis2/C engine were used by Aviary as part of its configuration variables. However, the original values lack clear definition as to what each level represents. They are simply an increasing enumeration of verbosity. Thus, the following string values are now used with their minimum and maximum settings: AXIS2_LOG_LEVEL_CRITICAL (lowest verbosity) AXIS2_LOG_LEVEL_ERROR AXIS2_LOG_LEVEL_WARNING AXIS2_LOG_LEVEL_INFO AXIS2_LOG_LEVEL_DEBUG AXIS2_LOG_LEVEL_USER AXIS2_LOG_LEVEL_TRACE (highest verbosity)
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-06 13:52:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jon Thomas 2011-10-28 15:21:57 UTC
Level in condor_contrib/aviary/src/AviaryScheddPlugin.cpp is an integer.

int level = param_integer("AXIS2_DEBUG_LEVEL",AXIS2_LOG_LEVEL_CRITICAL);

which means in order to change debug level to debug, one has to use 

AXIS2_DEBUG_LEVEL = 4

The RFE is to enable a human readable debug level so one can use something like:

AXIS2_DEBUG_LEVEL = AXIS2_LOG_LEVEL_DEBUG

Comment 1 Pete MacKinnon 2012-04-05 16:15:56 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Release Note

Aviary has replaced the integer configuration values of AXIS2_DEBUG_LEVEL with string equivalents. The integer values defined by the Axis2/C engine were used by Aviary as part of its configuration variables. However, the original values lack clear definition as to what each level represents. They are simply an increasing enumeration of verbosity. Thus, the following string values are now used with their minimum and maximum settings:

AXIS2_LOG_LEVEL_CRITICAL (lowest verbosity)
AXIS2_LOG_LEVEL_ERROR
AXIS2_LOG_LEVEL_WARNING
AXIS2_LOG_LEVEL_INFO
AXIS2_LOG_LEVEL_DEBUG
AXIS2_LOG_LEVEL_USER
AXIS2_LOG_LEVEL_TRACE (highest verbosity)

Comment 4 Daniel Horák 2013-04-24 12:58:22 UTC
Tested and verified on RHEL 5.9/6.4 - i386/x86_64:

# rpm -qa | grep condor
  condor-classads-7.8.8-0.4.1
  condor-aviary-7.8.8-0.4.1
  condor-7.8.8-0.4.1

It is slightly incorrectly described in comment 1. Along to comments in source code axutil_log.h and my verification, the AXIS2_LOG_LEVEL_USER logs only user level debug messages (DEBUG level is more verbose than USER level).

  AXIS2_LOG_LEVEL_CRITICAL - Critical level, logs only critical errors
  AXIS2_LOG_LEVEL_ERROR - Error level, logs only errors
  AXIS2_LOG_LEVEL_WARNING - Warning level, logs only warnings
  AXIS2_LOG_LEVEL_INFO - Info level, logs information
  AXIS2_LOG_LEVEL_DEBUG - Debug level, logs everything
  AXIS2_LOG_LEVEL_USER - User level, logs only user level debug messages
  AXIS2_LOG_LEVEL_TRACE - Trace level, Enable with compiler time option AXIS2_TRACE

Configuration value AXIS2_DEBUG_LEVEL works well with string representation of log levels.

>> VERIFIED