Skip Menu |

This queue is for tickets about the Log-Lite CPAN distribution.

Report information
The Basics
Id: 118832
Status: resolved
Priority: 0/
Queue: Log-Lite

People
Owner: CHENGANG [...] cpan.org
Requestors: andi [...] go-for-fun.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.14



Subject: closed filehandle
Date: Fri, 18 Nov 2016 12:08:38 +0000
To: "bug-Log-Lite [...] rt.cpan.org" <bug-Log-Lite [...] rt.cpan.org>
From: Andreas Zöllner <andi [...] go-for-fun.de>
Hi, I love using your module, but lately I get a lot of error messages on my windows pc using Strawberry Perl: Use of uninitialized value $ENV{"PWD"} in concatenation (.) or string at C:/Stra wberry/perl/site/lib/Log/Lite.pm line 52. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 105. print() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 106. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 107. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 105. print() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 106. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 107. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 105. print() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 106. flock() on closed filehandle $fh at C:/Strawberry/perl/site/lib/Log/Lite.pm line 107. Best regards Andreas
thanks for your reminder. could you give me some code to reproduce this BUG ? i will look at that. 在2016-十一月-18 07:09:11 星期五时,andi@go-for-fun.de写到: Show quoted text
> Hi, > > > I love using your module, but lately I get a lot of error messages on > my windows pc using Strawberry Perl: > > > Use of uninitialized value $ENV{"PWD"} in concatenation (.) or string > at C:/Stra > wberry/perl/site/lib/Log/Lite.pm line 52. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 105. > print() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 106. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 107. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 105. > print() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 106. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 107. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 105. > print() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 106. > flock() on closed filehandle $fh at > C:/Strawberry/perl/site/lib/Log/Lite.pm line > 107. > > > Best regards > > > Andreas
Subject: Re: [rt.cpan.org #118832] closed filehandle
Date: Wed, 23 Nov 2016 12:12:37 +0000
To: "bug-Log-Lite [...] rt.cpan.org" <bug-Log-Lite [...] rt.cpan.org>
From: Andreas Zöllner <andi [...] go-for-fun.de>
Hi, This is an issue of $ENV{'PWD'} not being set sometimes on Strawberry Perl for windows. Passing an absolute path solves the problem but Log::Lite doesn't accept the path as absolute as it normally starts with "C:\" instead of "/" on a windows system. Setting the path in $ENV{'PWD'} and setting Log::Lite's path to "." solves the issue but isn't nice. Maybe you want to adjust your regex for checking absolute paths to somethings that also works on windows systems. Cheers Andi On 21.11.16 09:02, "陈钢 via RT" <bug-Log-Lite@rt.cpan.org> wrote: Show quoted text
><URL: https://rt.cpan.org/Ticket/Display.html?id=118832 > > >thanks for your reminder. >could you give me some code to reproduce this BUG ? >i will look at that. > >在2016-十一月-18 07:09:11 星期五时,andi@go-for-fun.de写到:
>> Hi, >> >> >> I love using your module, but lately I get a lot of error messages on >> my windows pc using Strawberry Perl: >> >> >> Use of uninitialized value $ENV{"PWD"} in concatenation (.) or string >> at C:/Stra >> wberry/perl/site/lib/Log/Lite.pm line 52. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 105. >> print() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 106. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 107. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 105. >> print() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 106. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 107. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 105. >> print() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 106. >> flock() on closed filehandle $fh at >> C:/Strawberry/perl/site/lib/Log/Lite.pm line >> 107. >> >> >> Best regards >> >> >> Andreas
> > >
Download smime.p7s
application/pkcs7-signature 4.1k

Message body not shown because it is not plain text.

Uploaded new version 0.14 may fix the problem. Could you try 0.14 please? 在2016-十一月-23 07:12:55 星期三时,andi@go-for-fun.de写到: Show quoted text
> Hi, > > This is an issue of $ENV{'PWD'} not being set sometimes on Strawberry Perl > for windows. Passing an absolute path solves the problem but Log::Lite > doesn't accept the path as absolute as it normally starts with "C:\" > instead of "/" on a windows system. Setting the path in $ENV{'PWD'} and > setting Log::Lite's path to "." solves the issue but isn't nice. Maybe you > want to adjust your regex for checking absolute paths to somethings that > also works on windows systems. > > Cheers > > Andi > > On 21.11.16 09:02, "陈钢 via RT" <bug-Log-Lite@rt.cpan.org> wrote: >
> ><URL: https://rt.cpan.org/Ticket/Display.html?id=118832 > > > > >thanks for your reminder. > >could you give me some code to reproduce this BUG ? > >i will look at that. > > > >在2016-十一月-18 07:09:11 星期五时,andi@go-for-fun.de写到:
> >> Hi, > >> > >> > >> I love using your module, but lately I get a lot of error messages on > >> my windows pc using Strawberry Perl: > >> > >> > >> Use of uninitialized value $ENV{"PWD"} in concatenation (.) or string > >> at C:/Stra > >> wberry/perl/site/lib/Log/Lite.pm line 52. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 105. > >> print() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 106. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 107. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 105. > >> print() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 106. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 107. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 105. > >> print() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 106. > >> flock() on closed filehandle $fh at > >> C:/Strawberry/perl/site/lib/Log/Lite.pm line > >> 107. > >> > >> > >> Best regards > >> > >> > >> Andreas
> > > > > >