[Title] Use dummy log instead of ".log" on BuildComm
authordonghee yang <donghee.yang@samsung.com>
Tue, 9 Oct 2012 00:09:44 +0000 (09:09 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Tue, 9 Oct 2012 00:09:44 +0000 (09:09 +0900)
src/build_server/BuildComm.rb

index 8df46bfdc10a467a966d75d7b5f411f84b3335d3..109011336c8d425d32db0d1f9f8aacaacf809d32 100644 (file)
@@ -37,6 +37,15 @@ require 'thread'
 
 ATTEMPTS = ["first", "second", "third"]
 
+class DummyLog
+       def info(str)
+       end
+       def error(str)
+       end
+       def warn(str)
+       end     
+end
+
 class BuildCommServer
        VERSION = "1.5.0"
 
@@ -58,7 +67,7 @@ class BuildCommServer
                end
 
                if log.nil? then
-                       log = Log.new(".log")
+                       log = DummyLog.new
                end
 
                # create cache dir if not nil
@@ -399,7 +408,7 @@ class BuildCommClient
                end
 
                if log.nil? then
-                       log = Log.new(".log")
+                       log = DummyLog.new
                end
 
                return new(socket, log)