diff options
author | hut <hut@lavabit.com> | 2009-06-12 19:42:04 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-06-12 19:42:04 +0200 |
commit | 99b3192565dff16cb6a42668b49b348d50e89f3b (patch) | |
tree | 8227ce72152a9c560b2bedc3f49d44388a0622ae /code/debug.rb | |
parent | 5ed0f44d33db6ad182f7cc3e0e0c9c51a321dd5c (diff) | |
download | ranger-99b3192565dff16cb6a42668b49b348d50e89f3b.tar.gz |
logpp more straight forward
Diffstat (limited to 'code/debug.rb')
-rw-r--r-- | code/debug.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/code/debug.rb b/code/debug.rb index 6488dd9a..d7614aaf 100644 --- a/code/debug.rb +++ b/code/debug.rb @@ -191,12 +191,7 @@ module Debug ## logppfatal(x) => __logpp__(x, 1) def self.__logpp__(obj, level) if level <= @@level - old_stdout = $stdout - $stdout = @@stream - - pp(obj) - - $stdout = old_stdout + Debug.write(obj.pretty_inspect) end obj end |