diff options
-rw-r--r-- | code/debug.rb | 5 | ||||
-rwxr-xr-x | ranger.rb | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/code/debug.rb b/code/debug.rb index 24216723..5281cb15 100644 --- a/code/debug.rb +++ b/code/debug.rb @@ -38,18 +38,19 @@ module Debug @@stream = stream || STDERR @@level = level || 3 + @@name = "#{@@name}: " @@stream.sync = true end ## Write something to the output stream. def self.write(str) - @@stream.write(str) + @@stream.write(@@name + str.to_s) return str end ## Write something to the output stream with a newline at the end. def self.puts(str) - @@stream.puts(str) + @@stream.puts(@@name + str.to_s) return str end diff --git a/ranger.rb b/ranger.rb index 413a98b4..3dc05e6d 100755 --- a/ranger.rb +++ b/ranger.rb @@ -65,7 +65,7 @@ load 'data/screensaver/clock.rb' include Debug -Debug.setup( :name => 'nyuron', +Debug.setup( :name => 'ranger', :file => Option.debug_file, :level => Option.debug_level ) |