nixos/lib/*: editorconfig fixes
This commit is contained in:
parent
4181ae25bf
commit
25d7880f17
1 changed files with 4 additions and 4 deletions
|
@ -8,17 +8,17 @@ use Time::HiRes qw(clock_gettime CLOCK_MONOTONIC);
|
|||
|
||||
sub new {
|
||||
my ($class) = @_;
|
||||
|
||||
|
||||
my $logFile = defined $ENV{LOGFILE} ? "$ENV{LOGFILE}" : "/dev/null";
|
||||
my $log = new XML::Writer(OUTPUT => new IO::File(">$logFile"));
|
||||
|
||||
|
||||
my $self = {
|
||||
log => $log,
|
||||
logQueue => Thread::Queue->new()
|
||||
};
|
||||
|
||||
|
||||
$self->{log}->startTag("logfile");
|
||||
|
||||
|
||||
bless $self, $class;
|
||||
return $self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue