From: donghee yang Date: Tue, 9 Oct 2012 00:13:43 +0000 (+0900) Subject: [Title] Used dummy log more X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edbd1515f804f7fa2c869527b2af39496b541d3f;p=sdk%2Ftools%2Fsdk-build.git [Title] Used dummy log more --- diff --git a/src/build_server/BuildComm.rb b/src/build_server/BuildComm.rb index 1090113..96b490f 100644 --- a/src/build_server/BuildComm.rb +++ b/src/build_server/BuildComm.rb @@ -37,15 +37,6 @@ 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" diff --git a/src/build_server/RemoteBuilder.rb b/src/build_server/RemoteBuilder.rb index ba1a422..1ebccc8 100644 --- a/src/build_server/RemoteBuilder.rb +++ b/src/build_server/RemoteBuilder.rb @@ -46,7 +46,7 @@ class RemoteBuilder @ftp_port = ftp_port @ftp_username = ftp_username @ftp_passwd = ftp_passwd - @log = Log.new(".log") + @log = DummyLog.new @job = nil end diff --git a/src/common/log.rb b/src/common/log.rb index e7eb190..53f00cb 100644 --- a/src/common/log.rb +++ b/src/common/log.rb @@ -107,3 +107,14 @@ class Log #do nothing end end + + +class DummyLog + def info(str) + end + def error(str) + end + def warn(str) + end +end +