Skip Menu |

This queue is for tickets about the Log-Any-Adapter-Syslog CPAN distribution.

Report information
The Basics
Id: 68730
Status: resolved
Priority: 0/
Queue: Log-Any-Adapter-Syslog

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.2
Fixed in: 1.3



Subject: Percent signs in log messages are incorrectly interpreted as printf commands
Run the following program, then look at /var/log/syslog. Note that the output will just be "Log output: %" #!/usr/bin/env perl use Log::Any::Adapter; Log::Any::Adapter->set('Syslog'); use Log::Any qw($log); $log->warning('Log output: %s %d %i %%');
From: stephen.thirlwall [...] strategicdata.com.au
On Fri Jun 10 03:24:04 2011, TJC wrote: Show quoted text
> Run the following program, then look at /var/log/syslog. > Note that the output will just be "Log output: %" > > #!/usr/bin/env perl > use Log::Any::Adapter; > Log::Any::Adapter->set('Syslog'); > use Log::Any qw($log); > $log->warning('Log output: %s %d %i %%');
I have a fix for this here: https://github.com/sdt/Log-Any-Adapter-Syslog/commit/84a919ca5cd641c90b836c0e87b52baa473ca417
Fixed in v1.3