diff options
| author | fukachan <fukachan> | 2003-08-23 07:24:40 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-08-23 07:24:40 +0000 |
| commit | 9723a7a408f11cf8beaf8f618d2863c2f3e28ddb (patch) | |
| tree | dd4b1e0ae8d32873a0a289d5ba2a7cf01a2cc3ad /fml/lib/FML/Command/FileUtils.pm | |
| parent | 1757df2907216e1ab833c05ac8a2757f0b6a67e7 (diff) | |
| download | fml8-9723a7a408f11cf8beaf8f618d2863c2f3e28ddb.tar.gz fml8-9723a7a408f11cf8beaf8f618d2863c2f3e28ddb.tar.bz2 fml8-9723a7a408f11cf8beaf8f618d2863c2f3e28ddb.zip | |
define $curproc->log, logwarn, logerror and log_message() methods.
modified to use $curproc->log*() interface.
Diffstat (limited to 'fml/lib/FML/Command/FileUtils.pm')
| -rw-r--r-- | fml/lib/FML/Command/FileUtils.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fml/lib/FML/Command/FileUtils.pm b/fml/lib/FML/Command/FileUtils.pm index 81941090..b3aaa121 100644 --- a/fml/lib/FML/Command/FileUtils.pm +++ b/fml/lib/FML/Command/FileUtils.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: FileUtils.pm,v 1.11 2003/01/25 09:14:05 fukachan Exp $ +# $FML: FileUtils.pm,v 1.12 2003/02/09 12:31:41 fukachan Exp $ # package FML::Command::FileUtils; @@ -98,18 +98,18 @@ sub remove unlink $file; if (-f $file) { - LogError("fail to remove $file"); + $curproc->logerror("fail to remove $file"); $is_error++; } else { - Log("remove $file"); + $curproc->log("remove $file"); $curproc->reply_message_nl("command.remove_file", "removed $file", { _arg_file => $file } ); } } else { - LogWarn("no such file $file"); + $curproc->logwarn("no such file $file"); $curproc->reply_message_nl("command.no_such_file", "no such file $file", { _arg_file => $file } ); @@ -118,7 +118,7 @@ sub remove } # $file filename is unsafe. stop. else { - LogError("<$file> is insecure"); + $curproc->logerror("<$file> is insecure"); $curproc->reply_message_nl('command.insecure', "insecure input"); croak("remove: insecure argument"); |
