diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-09-06 11:14:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-09-06 11:14:50 +0000 |
commit | 1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b (patch) | |
tree | e9278a623d60b88f9c09681b4389029f5c6a8cf5 /perl-install/log.pm | |
parent | d3ce4c3e6c1e39cd841439f5f11fa8e6f40e8256 (diff) | |
download | drakx-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar drakx-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.gz drakx-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.bz2 drakx-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.xz drakx-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.zip |
(explanations) redirect log where appropriate at install time
Diffstat (limited to 'perl-install/log.pm')
-rw-r--r-- | perl-install/log.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/log.pm b/perl-install/log.pm index e14454b03..3e8826963 100644 --- a/perl-install/log.pm +++ b/perl-install/log.pm @@ -55,6 +55,12 @@ sub closeLog() { } else { close $LOG; close $LOG2 } } -sub explanations { c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_") } +sub explanations { + if ($::isStandalone) { + c::syslog(c::LOG_INFO()|c::LOG_LOCAL1(), "@_"); + } else { + l(@_); + } +} 1; |