• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 1635 for branches/3.0-Beta2/components

Show
Ignore:
Timestamp:
06/12/07 23:33:54 (15 months ago)
Author:
david
Message:

ticket #730 printStackTrace() removal

Files:
1 modified

  • branches/3.0-Beta2/components/server/src/ome/services/util/ServiceHandler.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2/components/server/src/ome/services/util/ServiceHandler.java

    r1236 r1635  
    239239    private void printException(String msg, Throwable ex) { 
    240240        if (log.isWarnEnabled()) { 
    241             StringWriter sw = null; 
    242             PrintWriter pw = null; 
    243  
    244             try { 
    245                 sw = new StringWriter(); 
    246                 pw = new PrintWriter(sw); 
    247                 ex.printStackTrace(pw); 
    248                 pw.flush(); 
    249                 sw.flush(); 
    250                 log.warn(msg + "\n" + sw.toString()); 
    251             } finally { 
    252                 if (pw != null) { 
    253                     pw.close(); 
    254                 } 
    255                 if (sw != null) { 
    256                     try { 
    257                         sw.close(); 
    258                     } catch (IOException ioe) { 
    259                         // ignore. 
    260                     } 
    261                 } 
    262             } 
     241            log.warn(msg + "\n", ex); 
    263242        } 
    264243    } 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/