From afb6365a487e5124fbbca62eb5daf3f254129e14 Mon Sep 17 00:00:00 2001 From: donghee yang Date: Tue, 9 Oct 2012 09:09:44 +0900 Subject: [PATCH] [Title] Use dummy log instead of ".log" on BuildComm --- src/build_server/BuildComm.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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) -- 2.34.1