Changeset 250


Ignore:
Timestamp:
09/02/08 17:56:06 (5 years ago)
Author:
saua
Message:

log getMessage() and toString() of exceptions, in case one of those provides more info than the other

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/Log.java

    r138 r250  
    7878 
    7979        public static void log(final Object source, final Throwable e) { 
    80                 log(source, "Exception: " + e.toString()); 
     80                log(source, "Exception: " + e.getMessage() + " <" + e.toString() + ">"); 
    8181                // this is only useful for debugging in the emulator 
    8282                e.printStackTrace(); 
     
    8484 
    8585        public static void log(final Object source, final Throwable e, final String message) { 
    86                 log(source, "Exception <" + message + ">: " + e.toString()); 
     86                log(source, "Exception <" + message + ">: " + e.getMessage() + " <" + e.toString() + ">"); 
    8787                // this is only useful for debugging in the emulator 
    8888                e.printStackTrace(); 
Note: See TracChangeset for help on using the changeset viewer.