Skip to content

Commit 2c6459c

Browse files
committed
Sinatra 4 expects a real IO-like object
1 parent c615b83 commit 2c6459c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/cloud_controller/logs/steno_io.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,24 @@ def write(str)
88
@logger.log(@level, str)
99
end
1010

11+
def puts(*args)
12+
args.each { |a| write("#{a}\n") }
13+
nil
14+
end
15+
16+
def flush
17+
nil
18+
end
19+
20+
def close
21+
nil
22+
end
23+
1124
def sync
1225
true
1326
end
27+
28+
def to_s
29+
@logger.name
30+
end
1431
end

0 commit comments

Comments
 (0)