projects
/
sdk
/
tools
/
sdk-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b097e1b
)
[Title] Use dummy log instead of ".log" on BuildComm
author
donghee yang
<donghee.yang@samsung.com>
Tue, 9 Oct 2012 00:09:44 +0000
(09:09 +0900)
committer
donghee yang
<donghee.yang@samsung.com>
Tue, 9 Oct 2012 00:09:44 +0000
(09:09 +0900)
src/build_server/BuildComm.rb
patch
|
blob
|
history
diff --git
a/src/build_server/BuildComm.rb
b/src/build_server/BuildComm.rb
index 8df46bfdc10a467a966d75d7b5f411f84b3335d3..109011336c8d425d32db0d1f9f8aacaacf809d32 100644
(file)
--- 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)