[ http://issues.apache.org/jira/browse/NUTCH-156?page=all ]
Paul Baclace updated NUTCH-156: ------------------------------- Attachment: nutch-daemon.sh.patch This is the suggested fix as a patch. Example log name: nutch-peb-jobtracker-ia109102.archive.org-20051228T230740.log > nutch-daemon.sh should not overwrite old logs by default > -------------------------------------------------------- > > Key: NUTCH-156 > URL: http://issues.apache.org/jira/browse/NUTCH-156 > Project: Nutch > Type: Bug > Versions: 0.8-dev > Environment: a;; > Reporter: Paul Baclace > Attachments: nutch-daemon.sh.patch > > nutch-daemon.sh creates a log file with the name pattern > "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-`hostname`.log" > every time it is run. This can overwrite a previous log without warning. As > such, it is too easy to accidently lose a log that might contain unique > failure information. > Workaround: one must remember to put aside the old logs before restarting a > daemon. > Suggested fix: > Change the log name pattern in nutch-daemon.sh to include an ISO date: > "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-$(hostname)-$(date > '+%Y%m%dT%H%M%S').log" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira