summaryrefslogtreecommitdiffstats
path: root/perl-install/log.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-09-06 11:14:50 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-09-06 11:14:50 +0000
commit1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b (patch)
treee9278a623d60b88f9c09681b4389029f5c6a8cf5 /perl-install/log.pm
parentd3ce4c3e6c1e39cd841439f5f11fa8e6f40e8256 (diff)
downloaddrakx-backup-do-not-use-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar
drakx-backup-do-not-use-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.gz
drakx-backup-do-not-use-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.bz2
drakx-backup-do-not-use-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.tar.xz
drakx-backup-do-not-use-1bf98ca8b5e6545cf98bf0aaab23d202bcf42e5b.zip
(explanations) redirect log where appropriate at install time
Diffstat (limited to 'perl-install/log.pm')
-rw-r--r--perl-install/log.pm8
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;