summaryrefslogtreecommitdiffstats
path: root/perl-install/log.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-01-18 20:22:20 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-01-18 20:22:20 +0000
commita845140044510ef3fdc179b333301218d3faefe5 (patch)
tree6234f82a4f47eed8f85819488443fb5faf5682bf /perl-install/log.pm
parent9a9d52bcbc0dc13eebcff1f61960137a504a0cba (diff)
downloaddrakx-a845140044510ef3fdc179b333301218d3faefe5.tar
drakx-a845140044510ef3fdc179b333301218d3faefe5.tar.gz
drakx-a845140044510ef3fdc179b333301218d3faefe5.tar.bz2
drakx-a845140044510ef3fdc179b333301218d3faefe5.tar.xz
drakx-a845140044510ef3fdc179b333301218d3faefe5.zip
- write the 'common' part of the 'explanations' stuff,
with nice help from Pixel for the tough Perl part - move 'use standalone' up in all standalone apps, to comply to 'explanations'
Diffstat (limited to 'perl-install/log.pm')
-rw-r--r--perl-install/log.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/log.pm b/perl-install/log.pm
index b049f5d49..59f3d4bbf 100644
--- a/perl-install/log.pm
+++ b/perl-install/log.pm
@@ -20,7 +20,7 @@ sub F() { *LOG }
sub l {
$logOpen or openLog();
if ($::isStandalone) {
- c::syslog(join "", @_);
+ c::syslog(c::LOG_WARNING(), join("", @_));
} elsif ($::isInstall) {
print LOG "* ", @_, "\n";
print LOG2 "* ", @_, "\n";
@@ -32,9 +32,7 @@ sub ld { $logDebugMessages and &l }
sub w { &l }
sub openLog(;$) {
- if ($::isStandalone) {
- c::openlog("DrakX");
- } elsif ($::isInstall) {
+ if ($::isInstall) {
if ($_[0]) { #- useLocal
open LOG, "> $_[0]";# or die "no log possible :(";
} else {