deleted date folder from log path

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4097
This commit is contained in:
olveyra 2008-07-23 12:21:05 +00:00
parent 7e32fe10f2
commit 3a06868c21
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class ClusterWorker(pb.Root):
"""Spawn process to run the given domain."""
if len(self.running) < self.maxproc:
if not domain in self.running:
logfile = os.path.join(self.logdir, time.strftime("%F"), domain, time.strftime("%FT%T.log"))
logfile = os.path.join(self.logdir, domain, time.strftime("%FT%T.log"))
if not os.path.exists(os.path.dirname(logfile)):
os.makedirs(os.path.dirname(logfile))
scrapy_proc = ScrapyProcessProtocol(self, domain, logfile, spider_settings)