bitbake: bitbake/server: Remove dead console log code
This code is dead and doesn't do anything so lets remove it. (Bitbake rev: 8d45739f49618757a5d7d79782deda355e3981ec) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f5acdd87bd
commit
e450b10c4c
|
@ -214,10 +214,6 @@ Default BBFILES are the .bb files in the current directory.""")
|
|||
if configuration.bind and configuration.servertype != "xmlrpc":
|
||||
sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n")
|
||||
|
||||
# Save a logfile for cooker into the current working directory. When the
|
||||
# server is daemonized this logfile will be truncated.
|
||||
cooker_logfile = os.path.join(os.getcwd(), "cooker.log")
|
||||
|
||||
bb.msg.init_msgconfig(configuration.verbose, configuration.debug,
|
||||
configuration.debug_domains)
|
||||
|
||||
|
@ -246,7 +242,7 @@ Default BBFILES are the .bb files in the current directory.""")
|
|||
|
||||
server.addcooker(cooker)
|
||||
server.saveConnectionDetails()
|
||||
server.detach(cooker_logfile)
|
||||
server.detach()
|
||||
|
||||
# Should no longer need to ever reference cooker
|
||||
del cooker
|
||||
|
|
|
@ -191,8 +191,8 @@ class BitBakeServer(object):
|
|||
def saveConnectionDetails(self):
|
||||
return
|
||||
|
||||
def detach(self, cooker_logfile):
|
||||
self.logfile = cooker_logfile
|
||||
def detach(self):
|
||||
return
|
||||
|
||||
def establishConnection(self):
|
||||
self.connection = BitBakeServerConnection(self)
|
||||
|
|
|
@ -256,7 +256,7 @@ class BitBakeServer(object):
|
|||
def saveConnectionDetails(self):
|
||||
return
|
||||
|
||||
def detach(self, cooker_logfile):
|
||||
def detach(self):
|
||||
self.server.start()
|
||||
return
|
||||
|
||||
|
|
|
@ -280,8 +280,8 @@ class BitBakeServer(object):
|
|||
def saveConnectionDetails(self):
|
||||
self.serverinfo = BitbakeServerInfo(self.server.host, self.server.port)
|
||||
|
||||
def detach(self, cooker_logfile):
|
||||
daemonize.createDaemon(self.server.serve_forever, cooker_logfile)
|
||||
def detach(self):
|
||||
daemonize.createDaemon(self.server.serve_forever)
|
||||
del self.cooker
|
||||
del self.server
|
||||
|
||||
|
|
Loading…
Reference in New Issue