81bd9519 by 周伟奇

add dir log

1 parent c3261b19
......@@ -165,7 +165,6 @@ class Command(BaseCommand, LoggerMixin):
def folder_process(self, input_dir, classify):
while not os.path.isdir(input_dir):
self.folder_log.info('{0} [input dir is not dir] [input_dir={1}]'.format(self.log_base, input_dir))
print(self.switch)
if self.switch:
time.sleep(self.sleep_time)
continue
......@@ -202,6 +201,8 @@ class Command(BaseCommand, LoggerMixin):
else:
self.img_process(name, path, classify, wb_output_dir, img_output_dir, pdf_output_dir)
self.folder_log.info('{0} [file end] [path={1}]'.format(self.log_base, path))
else:
self.folder_log.info('{0} [path is dir] [path={1}]'.format(self.log_base, input_dir))
except Exception as e:
try:
path = os.path.join(input_dir, name)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!