From 74e3a547db8eefa171e870b081995c10df5946de Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 1 Jun 2008 11:24:46 +0000 Subject: [PATCH] more logging for mySeed loading error cases git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4871 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacySeedDB.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index 499424c6a..1020b3504 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -157,19 +157,23 @@ public final class yacySeedDB implements httpdAlternativeDomainNames { mySeed = yacySeed.load(myOwnSeedFile); } catch (IOException e) { // create new identity + serverLog.logSevere("SEEDDB", "could not load stored mySeed.txt from " + myOwnSeedFile.toString() + ": " + e.getMessage() + ". creating new seed.", e); mySeed = yacySeed.genLocalSeed(this); try { mySeed.save(myOwnSeedFile); } catch (IOException ee) { + serverLog.logSevere("SEEDDB", "error saving mySeed.txt (1) to " + myOwnSeedFile.toString() + ": " + ee.getMessage(), ee); ee.printStackTrace(); System.exit(-1); } } else { // create new identity + serverLog.logInfo("SEEDDB", "could not find stored mySeed.txt at " + myOwnSeedFile.toString() + ": " + ". creating new seed."); mySeed = yacySeed.genLocalSeed(this); try { mySeed.save(myOwnSeedFile); } catch (IOException ee) { + serverLog.logSevere("SEEDDB", "error saving mySeed.txt (2) to " + myOwnSeedFile.toString() + ": " + ee.getMessage(), ee); ee.printStackTrace(); System.exit(-1); }