Subject: | Error with more than one instance of Log-Tiny |
Date: | Mon, 14 Sep 2015 17:40:57 +0000 |
To: | "bug-log-tiny [...] rt.cpan.org" <bug-log-tiny [...] rt.cpan.org> |
From: | Bryan Rivera <brys.dev [...] outlook.com> |
When using more than one instance of Log::Tiny in a script, the module dies with an error in DESTROY with Bad File Descriptor error. I think this is due to using the bareword LOG for the filehandle. I tested a patch using a lexically scoped variable for the filehandle and it seemed to work.
I’m using:
Log::Tiny v0.9
This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux-gnu-thread-multi-64int
Linux Bastille 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 UTC 2015 i686 i686 i686 GNU/Linux
Thanks
Bry R.