From: donghee yang Date: Tue, 9 Oct 2012 00:09:44 +0000 (+0900) Subject: [Title] Use dummy log instead of ".log" on BuildComm X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afb6365a487e5124fbbca62eb5daf3f254129e14;p=sdk%2Ftools%2Fsdk-build.git [Title] Use dummy log instead of ".log" on BuildComm --- diff --git a/src/build_server/BuildComm.rb b/src/build_server/BuildComm.rb index 8df46bf..1090113 100644 --- a/src/build_server/BuildComm.rb +++ b/src/build_server/BuildComm.rb @@ -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)