Re: [log4perl-devel] logcroak always stringifies when croak()ing

2012-10-18 Thread Mike Schilli
On Mon, 15 Oct 2012, BENNING, Markus (ext) wrote: > Shouldn't logcroak log a stringified version and call croak on the > value you passed to it instead of calling croak on the log message? I guess that makes sense if you're using it for throwing exceptions, but I've never used it that way and tha

Re: [log4perl-devel] logcroak always stringifies when croak()ing

2012-10-18 Thread BENNING, Markus
I fixed the problem for me by replacing logcroak with $logger->error("$e"); croak($e); I also would suggest to introduce a flag to avoid breaking existing code. Since the option will be documented in the pod the behavior should be clear. Markus -Ursprüngliche Nachricht- Von: Mike Schill