Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor style fix

  • Loading branch information...
commit fa018715deb4989b6e5ab75ba9bc4cd1dff14059 1 parent 161f054
@meh authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/LOLastfm.rb
View
6 lib/LOLastfm.rb
@@ -117,7 +117,6 @@ def save
def log (what, group = nil)
io = StringIO.new
-
io.print "[#{Time.now}#{", #{group}" if group}] "
if what.is_a? Exception
@@ -127,10 +126,7 @@ def log (what, group = nil)
io.puts what
end
- io.puts ''
- io.seek 0
-
- io.read.tap {|text|
+ io.string.tap {|text|
$stderr.puts text
File.open(@logs_at, 'a') { |f| f.print text }
Please sign in to comment.
Something went wrong with that request. Please try again.