about summary refs log tree commit diff stats
path: root/code/debug.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-19 23:05:51 +0200
committerhut <hut@lavabit.com>2009-07-19 23:05:51 +0200
commit7e08f5ad838c644ae08126d075e1316a68f82357 (patch)
treeca20a1efea10516cbb11ab1fdfa01eaba6c52daa /code/debug.rb
parent529d411bf96b9bf0c57dd06f5afecc65e91a136d (diff)
downloadranger-7e08f5ad838c644ae08126d075e1316a68f82357.tar.gz
implemented name in code/debug.rb
Diffstat (limited to 'code/debug.rb')
-rw-r--r--code/debug.rb5
1 files changed, 3 insertions, 2 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