diff options
| author | fukachan <fukachan> | 2006-05-03 07:39:25 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2006-05-03 07:39:25 +0000 |
| commit | 367bf6076db0b243b4238183270962b8b78f6660 (patch) | |
| tree | 8de581fe92ec28b1d6fd3b98b1efd044e04002e1 /fml | |
| parent | cd5bdd53d033b9b7995d0d1a7956376d4776c8de (diff) | |
| download | fml8-367bf6076db0b243b4238183270962b8b78f6660.tar.gz fml8-367bf6076db0b243b4238183270962b8b78f6660.tar.bz2 fml8-367bf6076db0b243b4238183270962b8b78f6660.zip | |
modify log messages
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/FML/Article.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fml/lib/FML/Article.pm b/fml/lib/FML/Article.pm index d1d39289..53d43bcc 100644 --- a/fml/lib/FML/Article.pm +++ b/fml/lib/FML/Article.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Article.pm,v 1.76 2005/09/14 00:02:36 fukachan Exp $ +# $FML: Article.pm,v 1.77 2006/05/03 06:58:22 fukachan Exp $ # package FML::Article; @@ -327,14 +327,17 @@ sub expire my $too_old_files = $self->_find_too_old_articles($spool_dir, $threshold); # 2. expire them. + use File::Basename; for my $article (@$too_old_files) { if (-f $article) { unlink($article); + + my $id = basename($article); unless (-f $article) { - $curproc->log("expire: $article removed"); + $curproc->log("expire: article $id removed"); } else { - $curproc->logerror("expire: removal of $article fail"); + $curproc->logerror("expire: removal of article $id fail"); } } } |
