def printExc(msg='', indent=4, prefix='|'):
 exc = getExc(indent, (prefix + '  '), skip=2)
 print(('[%s]  %s\n' % (time.strftime('%H:%M:%S'), msg)))
 print(((((' ' * indent) + prefix) + ('=' * 30)) + '>>'))
 print(exc)
 print(((((' ' * indent) + prefix) + ('=' * 30)) + '<<'))

def printExc ( msg = '' , indent = 4 , prefix = '|' ) : exc = getExc ( indent , ( prefix + '  ' ) , skip = 2 ) print ( ( '[%s]  %s\n' % ( time . strftime ( '%H:%M:%S' ) , msg ) ) ) print ( ( ( ( ( ' ' * indent ) + prefix ) + ( '=' * 30 ) ) + '>>' ) ) print ( exc ) print ( ( ( ( ( ' ' * indent ) + prefix ) + ( '=' * 30 ) ) + '<<' ) )
print an error message followed by an indented exception backtrace .