Changeset 1390 for pykota

Show
Ignore:
Timestamp:
03/05/04 13:31:35 (21 years ago)
Author:
jalet
Message:

Now should output full traceback when crashing

Location:
pykota/trunk/bin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1375 r1390  
    2424# 
    2525# $Log$ 
     26# Revision 1.32  2004/03/05 12:31:35  jalet 
     27# Now should output full traceback when crashing 
     28# 
    2629# Revision 1.31  2004/03/01 14:35:56  jalet 
    2730# PYKOTAPHASE wasn't set soon enough at the start of the job 
     
    485488            retcode = kotabackend.mainWork() 
    486489        except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, PyKotaRequesterError, AttributeError, KeyError, IndexError, ValueError, TypeError, IOError), msg : 
    487             sys.stderr.write("ERROR : cupspykota backend failed (%s)\n" % msg) 
     490            import traceback 
     491            sys.stderr.write("ERROR : cupspykota backend failed (%s) => %s\n" % (msg, traceback.format_stack())) 
    488492            sys.stderr.flush() 
    489493            retcode = 1 
  • pykota/trunk/bin/pykota

    r1376 r1390  
    2424# 
    2525# $Log$ 
     26# Revision 1.55  2004/03/05 12:31:35  jalet 
     27# Now should output full traceback when crashing 
     28# 
    2629# Revision 1.54  2004/03/01 15:06:51  jalet 
    2730# Pre and Post hooks should now work in the pykota filter too. 
     
    351354        retcode = kotafilter.mainWork() 
    352355    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, PyKotaRequesterError, AttributeError, KeyError, IndexError, ValueError, TypeError, IOError), msg : 
    353         sys.stderr.write("ERROR : PyKota filter failed (%s)\n" % msg) 
     356        import traceback 
     357        sys.stderr.write("ERROR : PyKota filter failed (%s) => %s\n" % (msg, traceback.format_stack())) 
    354358        sys.stderr.flush() 
    355359        try :