Ignore:
Timestamp:
08/23/07 22:15:34 (5 years ago)
Author:
saua
Message:

add logging to text file

File:
1 edited

Legend:

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

    r83 r88  
    3434                                        result.addElement(new FileTrackStoreEntry(name, date, fileUrl)); 
    3535                                } catch (final IOException e) { 
    36                                         BBTracker.log("Failed to load info from " + file); 
    37                                         BBTracker.log(e); 
     36                                        BBTracker.log(this, e, "loading info from " + file); 
    3837                                } finally { 
    3938                                        if (din != null) { 
     
    4140                                                        din.close(); 
    4241                                                } catch (final IOException e) { 
    43                                                         BBTracker.log(e); 
     42                                                        BBTracker.log(this, e); 
    4443                                                } 
    4544                                        } 
     
    5049                        return entries; 
    5150                } catch (final IOException e) { 
    52                         BBTracker.log(e); 
     51                        BBTracker.log(this, e, "loading track list"); 
    5352                        throw new TrackStoreException(e); 
    5453                } finally { 
     
    5857                                } catch (final IOException e) { 
    5958                                        // can't do anything about it 
    60                                         BBTracker.log(e); 
     59                                        BBTracker.log(this, e); 
    6160                                } 
    6261                        } 
     
    7372                        track.writeToStream(dout); 
    7473                } catch (final IOException e) { 
    75                         BBTracker.log(e); 
     74                        BBTracker.log(this, e, "saving track"); 
    7675                        throw new TrackStoreException(e); 
    7776                } finally { 
     
    8180                                } catch (final IOException e) { 
    8281                                        // can't do anything about it 
    83                                         BBTracker.log(e); 
    8482                                } 
    8583                        } 
     
    8987                                } catch (final IOException e) { 
    9088                                        // can't do anything about it 
    91                                         BBTracker.log(e); 
     89                                        BBTracker.log(this, e); 
    9290                                } 
    9391                        } 
     
    173171                                connection.delete(); 
    174172                        } catch (final IOException e) { 
    175                                 BBTracker.log(e); 
     173                                BBTracker.log(this, e, "deleting track"); 
    176174                                throw new TrackStoreException("Failed to delete track: " + e.getMessage()); 
    177175                        } 
     
    185183                                return track; 
    186184                        } catch (final IOException e) { 
    187                                 BBTracker.log(e); 
     185                                BBTracker.log(this, e, "loading track"); 
    188186                                throw new TrackStoreException("Failed to load track: " + e.getMessage()); 
    189187                        } finally { 
     
    193191                                        } catch (final IOException e) { 
    194192                                                // can't do anything about it 
    195                                                 BBTracker.log(e); 
     193                                                BBTracker.log(this, e); 
    196194                                        } 
    197195                                } 
Note: See TracChangeset for help on using the changeset viewer.