Package backend :: Package common :: Module rhnTB
[hide private]
[frames] | no frames]

Module rhnTB

source code

Classes [hide private]
  SecurityList
The SecurityList is a list of strings that are censored out of a debug email.
Functions [hide private]
 
print_env(fd=sys.stdin)
Dump the environment.
source code
 
print_locals(fd=sys.stdin, tb=None)
Dump a listing of all local variables and their value for better debugging chance.
source code
 
print_req(req, fd=sys.stdin)
get some debugging information about the current exception for sending out when we raise an exception
source code
 
Traceback(method=None, req=None, mail=1, ostream=sys.stdin, extra=None, severity='notification', with_locals=0)
Reports an traceback error and optionally sends mail about it.
source code
 
fetchTraceback(method=None, req=None, extra=None, with_locals=0)
a cheat for snagging just the string value of a Traceback
source code
 
exitWithTraceback(e, msg, exitnum, mail=0) source code
 
get_seclist()
Returns the list of strings to be censored.
source code
 
censor_string(strval)
Remove all instances of the strings in seclist.sec from strval
source code
 
add_to_seclist(obj)
Adds a string to seclist.sec, but only if it's not already there.
source code
Variables [hide private]
  hostname = 'kvm-02-guest02.lab.eng.rdu2.redhat.com'
  QUIET_MAIL = None
hash(x)
  __package__ = 'backend.common'
Function Details [hide private]

Traceback(method=None, req=None, mail=1, ostream=sys.stdin, extra=None, severity='notification', with_locals=0)

source code 

Reports an traceback error and optionally sends mail about it. NOTE: extra = extra text information.