diff --git a/src/caoscrawler/crawl.py b/src/caoscrawler/crawl.py index cab27bf3faeac4b1bb52ed467fb67bd333526531..24a172e8d46b073592ec557173902d3a6ec977da 100644 --- a/src/caoscrawler/crawl.py +++ b/src/caoscrawler/crawl.py @@ -1549,13 +1549,13 @@ def crawler_main(crawled_directory_path: str, try: crawler = Crawler(securityMode=securityMode) - # setup logging and reporting if serverside execution - if "SHARED_DIR" in os.environ: + if "SHARED_DIR" in os.environ: # setup logging and reporting if serverside execution userlog_public, htmluserlog_public, debuglog_public = configure_server_side_logging() + # TODO make this optional _create_status_record( get_config_setting("public_host_url") + "/Shared/" + htmluserlog_public, crawler.run_id) - else: + else: # setup stdout logging for other cases root_logger = logging.getLogger() root_logger.setLevel(level=(logging.DEBUG if debug else logging.INFO)) handler = logging.StreamHandler(stream=sys.stdout)