Ramaze/ramaze — pull request #52 by ameuret (2012-07-19 10:29:51+00:00)
Title: Ramaze::Logger::Syslog should escape printf % sequences before handing the message to ::Syslog

[One more time with feeling]

If a log message happens to contain a percent escape sequence (valid or not) it is passed as is to ::Syslog which passes it down to syslog(3) which blows up for lack of arguments.

Side note: I initially added support for the special %m sequence for syslog(3) but found out that Ruby blew up on it too. I filed a bug at Ruby Redmine (http://bugs.ruby-lang.org/issues/6726) and they're planning to remove the intended support for this sequence.