mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +00:00
nixos/lib/*: editorconfig fixes
This commit is contained in:
parent
4181ae25bf
commit
25d7880f17
@ -8,17 +8,17 @@ use Time::HiRes qw(clock_gettime CLOCK_MONOTONIC);
|
|||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class) = @_;
|
my ($class) = @_;
|
||||||
|
|
||||||
my $logFile = defined $ENV{LOGFILE} ? "$ENV{LOGFILE}" : "/dev/null";
|
my $logFile = defined $ENV{LOGFILE} ? "$ENV{LOGFILE}" : "/dev/null";
|
||||||
my $log = new XML::Writer(OUTPUT => new IO::File(">$logFile"));
|
my $log = new XML::Writer(OUTPUT => new IO::File(">$logFile"));
|
||||||
|
|
||||||
my $self = {
|
my $self = {
|
||||||
log => $log,
|
log => $log,
|
||||||
logQueue => Thread::Queue->new()
|
logQueue => Thread::Queue->new()
|
||||||
};
|
};
|
||||||
|
|
||||||
$self->{log}->startTag("logfile");
|
$self->{log}->startTag("logfile");
|
||||||
|
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user