Ignore:
Timestamp:
10/29/12 12:22:53 (12 years ago)
Author:
sdipsl
Message:
  • bugfix : looping over rebuild command we must delete the first arguments not the last one.
  • bugfix : catching the last arg we must use this eval lastArg=\${$#} otherwise we won't catch the latest arguments if there are more than 9.
  • add date to debug print
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r706 r734  
    265265    case "${level}" in 
    266266    1) for i in "$@" ; do 
    267       ${cmd_echo} "--Debug1-->" ${i} 
     267      ${cmd_echo} $(date +"%Y-%m-%d %T") "--Debug1-->" ${i} 
    268268      done ;;  
    269269    2) for i in "$@" ; do 
    270       ${cmd_echo} "--------Debug2-->" ${i} 
     270      ${cmd_echo} $(date +"%Y-%m-%d %T") "--------Debug2-->" ${i} 
    271271      done ;;  
    272272    3) for i in "$@" ; do 
    273       ${cmd_echo} "--------------Debug3-->" ${i} 
     273      ${cmd_echo} $(date +"%Y-%m-%d %T") "--------------Debug3-->" ${i} 
    274274      done ;;  
    275275    esac 
Note: See TracChangeset for help on using the changeset viewer.