def printTrace(msg='', indent=4, prefix='|'):
 trace = backtrace(1)
 print(('[%s]  %s\n' % (time.strftime('%H:%M:%S'), msg)))
 print(((((' ' * indent) + prefix) + ('=' * 30)) + '>>'))
 for line in trace.split('\n'):
  print(((((' ' * indent) + prefix) + ' ') + line))
 print(((((' ' * indent) + prefix) + ('=' * 30)) + '<<'))

def printTrace ( msg = '' , indent = 4 , prefix = '|' ) : trace = backtrace ( 1 ) print ( ( '[%s]  %s\n' % ( time . strftime ( '%H:%M:%S' ) , msg ) ) ) print ( ( ( ( ( ' ' * indent ) + prefix ) + ( '=' * 30 ) ) + '>>' ) ) for line in trace . split ( '\n' ) : print ( ( ( ( ( ' ' * indent ) + prefix ) + ' ' ) + line ) ) print ( ( ( ( ( ' ' * indent ) + prefix ) + ( '=' * 30 ) ) + '<<' ) )
print an error message followed by an indented stack trace .