From: noreply@... Date: 2005-10-30T03:26:14+09:00 Subject: [ ruby-Bugs-2746 ] Syslog cannot log messages with %s in them Bugs item #2746, was opened at 2005-10-29 13:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2746&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Luke Kanies (lkanies) Assigned to: Nobody (None) Summary: Syslog cannot log messages with %s in them Initial Comment: If you try to log a message which could be substituted by printf to Syslog, you get an exception: luke@sol10b(13) $ irb irb(main):001:0> require 'syslog' => true irb(main):002:0> Syslog.open("testing") => <#Syslog: opened=true, ident="testing", options=3, facility=8, mask=255> irb(main):003:0> Syslog.info("testing%s") ArgumentError: too few argument. from (irb):3:in `info' from (irb):3 I have not yet found a workaround. Escaping the percent sign using a backslash (unsurprisingly) does not work. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2746&group_id=426