Skip to content
Snippets Groups Projects

REL: Release 0.10.0

Merged Florian Spreckelsen requested to merge release-0.10.0 into main
3 files
+ 30
34
Compare changes
  • Side-by-side
  • Inline

Files

+ 10
11
@@ -1020,7 +1020,7 @@ def crawler_main(crawled_directory_path: str,
@@ -1020,7 +1020,7 @@ def crawler_main(crawled_directory_path: str,
restricted_path: Optional[list[str]] = None,
restricted_path: Optional[list[str]] = None,
remove_prefix: Optional[str] = None,
remove_prefix: Optional[str] = None,
add_prefix: Optional[str] = None,
add_prefix: Optional[str] = None,
verbose_sss_debug_log: Optional[bool] = None,
sss_max_log_level: Optional[int] = None,
):
):
"""
"""
@@ -1054,13 +1054,12 @@ def crawler_main(crawled_directory_path: str,
@@ -1054,13 +1054,12 @@ def crawler_main(crawled_directory_path: str,
add_prefix : Optional[str]
add_prefix : Optional[str]
Add the given prefix to file paths.
Add the given prefix to file paths.
See docstring of '_fix_file_paths' for more details.
See docstring of '_fix_file_paths' for more details.
verbose_sss_debug_log : Optional[bool]
sss_max_log_level : Optional[int]
If given, set the log level of the server-side scripting log
If given, set the maximum log level of the server-side
separately from the general ``debug`` option. If True, the
scripting log separately from the general ``debug`` option. If
server-side scripting debug log will contain ``logging.DEBUG``
None is given, the maximum sss log level will be determined
level output even when ``debug=False``. If False, the debuglog
from the value of ``debug``: ``logging.INFO`` if ``debug`` is
will only containe ``logging.ERROR`` output even when
False, ``logging.DEBUG`` if ``debug`` is True.
``debug=True``. If None, the value of ``debug`` is used.
Returns
Returns
-------
-------
@@ -1071,10 +1070,10 @@ def crawler_main(crawled_directory_path: str,
@@ -1071,10 +1070,10 @@ def crawler_main(crawled_directory_path: str,
crawler = Crawler(securityMode=securityMode)
crawler = Crawler(securityMode=securityMode)
if "SHARED_DIR" in os.environ: # setup logging and reporting if serverside execution
if "SHARED_DIR" in os.environ: # setup logging and reporting if serverside execution
if verbose_sss_debug_log is None:
if sss_max_log_level is None:
verbose_sss_debug_log = debug
sss_max_log_level = logging.DEBUG if debug else logging.INFO
userlog_public, htmluserlog_public, debuglog_public = configure_server_side_logging(
userlog_public, htmluserlog_public, debuglog_public = configure_server_side_logging(
debug=verbose_sss_debug_log
max_log_level=sss_max_log_level
)
)
# TODO make this optional
# TODO make this optional
_create_status_record(
_create_status_record(
Loading