Changeset fbfffa9 for apps/addressbook


Ignore:
Timestamp:
Mar 29, 2011 2:16:42 AM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9f475c0
Parents:
8ae398d
Message:
  • SusiDNS cleanups
  • Logging cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/addressbook/java/src/net/i2p/addressbook/Daemon.java

    r8ae398d rfbfffa9  
    2323
    2424import java.io.File;
     25import java.io.IOException;
    2526import java.util.HashMap;
    2627import java.util.Iterator;
     
    169170                                    publishedNS = new SingleFileNamingService(I2PAppContext.getGlobalContext(), published.getAbsolutePath());
    170171                                success = publishedNS.putIfAbsent(key, dest);
    171                                 if (!success)
    172                                     log.append("Save to published addressbook " + published.getAbsolutePath() + " failed for new key " + key);
     172                                if (!success) {
     173                                    try {
     174                                        log.append("Save to published address book " + published.getCanonicalPath() + " failed for new key " + key);
     175                                    } catch (IOException ioe) {}
     176                                }
    173177                            }
    174178                            if (isTextFile)
Note: See TracChangeset for help on using the changeset viewer.