Ejemplo n.º 1
0
def bug_report (dtype, value, trace):
	sys.stdout.flush()
	sys.stderr.flush()

	print(PANIC)
	sys.stdout.flush()
	sys.stderr.flush()

	import traceback

	print("-- Traceback\n\n")
	traceback.print_exception(dtype,value,trace)

	from exabgp.logger import Logger
	logger = Logger()

	print("\n\n-- Configuration\n\n")
	print(logger.config())
	print("\n\n-- Logging History\n\n")
	print(logger.history())
	print("\n\n\n")

	print(FOOTER)
	sys.stdout.flush()
	sys.stderr.flush()
Ejemplo n.º 2
0
def bug_report(dtype, value, trace):
    sys.stdout.flush()
    sys.stderr.flush()

    print(PANIC)
    sys.stdout.flush()
    sys.stderr.flush()

    import traceback

    print("-- Traceback\n\n")
    traceback.print_exception(dtype, value, trace)

    from exabgp.logger import Logger
    logger = Logger()

    print("\n\n-- Configuration\n\n")
    print(logger.config())
    print("\n\n-- Logging History\n\n")
    print(logger.history())
    print("\n\n\n")

    print(FOOTER)
    sys.stdout.flush()
    sys.stderr.flush()
Ejemplo n.º 3
0
    def bug_report(type, value, trace):
        import traceback
        from exabgp.logger import Logger
        logger = Logger()

        print
        print
        print "-" * 80
        print "-- Please provide the information below on :"
        print "-- https://github.com/Exa-Networks/exabgp/issues"
        print "-" * 80
        print
        print
        print '-- Information'
        print
        print
        print 'ExaBGP : %s' % version
        print 'Python : %s' % sys.version.replace('\n', ' ')
        print 'Uname  : %s' % platform.version()
        print 'MaxInt : %s' % str(sys.maxint)
        print
        print
        print "-- Configuration"
        print
        print
        print logger.config()
        print
        print
        print "-- Logging History"
        print
        print
        print logger.history()
        print
        print
        print "-- Traceback"
        print
        print
        traceback.print_exception(type, value, trace)
        print
        print
        print "-" * 80
        print "-- Please provide the information above on :"
        print "-- https://github.com/Exa-Networks/exabgp/issues"
        print "-" * 80
        print
        print
Ejemplo n.º 4
0
	def bug_report (type, value, trace):
		import traceback
		from exabgp.logger import Logger
		logger = Logger()

		print
		print
		print "-"*80
		print "-- Please provide the information below on :"
		print "-- https://github.com/Exa-Networks/exabgp/issues"
		print "-"*80
		print
		print
		print '-- Information'
		print
		print
		print 'ExaBGP : %s' % version
		print 'Python : %s' % sys.version.replace('\n',' ')
		print 'Uname  : %s' % platform.version()
		print 'MaxInt : %s' % str(sys.maxint)
		print
		print
		print "-- Configuration"
		print
		print
		print logger.config()
		print
		print
		print "-- Logging History"
		print
		print
		print logger.history()
		print
		print
		print "-- Traceback"
		print
		print
		traceback.print_exception(type,value,trace)
		print
		print
		print "-"*80
		print "-- Please provide the information above on :"
		print "-- https://github.com/Exa-Networks/exabgp/issues"
		print "-"*80
		print
		print
Ejemplo n.º 5
0
def bug_report (type, value, trace):
	print panic

	import traceback

	print "-- Traceback\n\n"
	traceback.print_exception(type,value,trace)

	from exabgp.logger import Logger
	logger = Logger()

	print "\n\n-- Configuration\n\n"
	print logger.config()
	print "\n\n-- Logging History\n\n"
	print logger.history()
	print "\n\n\n"

	print footer
Ejemplo n.º 6
0
def bug_report (dtype, value, trace):
	print panic

	import traceback

	print "-- Traceback\n\n"
	traceback.print_exception(dtype,value,trace)

	from exabgp.logger import Logger
	logger = Logger()

	print "\n\n-- Configuration\n\n"
	print logger.config()
	print "\n\n-- Logging History\n\n"
	print logger.history()
	print "\n\n\n"

	print footer
Ejemplo n.º 7
0
Archivo: debug.py Proyecto: asnd/exabgp
	def bug_report (type, value, trace):
		import traceback
		from exabgp.logger import Logger
		logger = Logger()

		print
		print
		print "-"*80
		print "-- Please provide the information below on :"
		print "-- https://github.com/Exa-Networks/exabgp/issues"
		print "-"*80
		print
		print
		print '-- Version'
		print
		print
		print sys.version
		print
		print
		print "-- Configuration"
		print
		print
		print logger.config()
		print
		print
		print "-- Logging History"
		print
		print
		print logger.history()
		print
		print
		print "-- Traceback"
		print
		print
		traceback.print_exception(type,value,trace)
		print
		print
		print "-"*80
		print "-- Please provide the information above on :"
		print "-- https://github.com/Exa-Networks/exabgp/issues"
		print "-"*80
		print
		print
Ejemplo n.º 8
0
    def bug_report(type, value, trace):
        import traceback
        from exabgp.logger import Logger
        logger = Logger()

        print
        print
        print "-" * 80
        print "-- Please provide the information below on :"
        print "-- https://github.com/Thomas-Mangin/exabgp/issues"
        print "-" * 80
        print
        print
        print '-- Version'
        print
        print
        print sys.version
        print
        print
        print "-- Configuration"
        print
        print
        print logger.config()
        print
        print
        print "-- Logging History"
        print
        print
        print logger.history()
        print
        print
        print "-- Traceback"
        print
        print
        traceback.print_exception(type, value, trace)
        print
        print
        print "-" * 80
        print "-- Please provide the information above on :"
        print "-- https://github.com/Thomas-Mangin/exabgp/issues"
        print "-" * 80
        print
        print
Ejemplo n.º 9
0
def bug_report (dtype, value, trace):
	print(panic)

	import traceback

	print("-- Traceback\n\n")
	traceback.print_exception(dtype,value,trace)

	from exabgp.logger import Logger
	logger = Logger()

	print("\n\n-- Configuration\n\n")
	print(logger.config())
	print("\n\n-- Logging History\n\n")
	print(logger.history())
	print("\n\n\n")

	print(footer)