To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit d191b402 authored by scmalte's avatar scmalte
Browse files

Turning moss.py into a proper script, available as mu-moss

parent 34f6d05a
...@@ -24,6 +24,9 @@ def run_moss( ...@@ -24,6 +24,9 @@ def run_moss(
report_subdir=DEFAULT_REPORT_SUBDIR, report_subdir=DEFAULT_REPORT_SUBDIR,
connections=DEFAULT_CONNECTIONS): connections=DEFAULT_CONNECTIONS):
# Get a string representation of all function arguments, for logging purposes
function_args_string = str(locals())
# Initialisation # Initialisation
logging.info("User id: {}".format(user_id)) logging.info("User id: {}".format(user_id))
logging.info("Language: {}".format(language)) logging.info("Language: {}".format(language))
...@@ -36,6 +39,7 @@ def run_moss( ...@@ -36,6 +39,7 @@ def run_moss(
moss.setIgnoreLimit(ignore_limit) moss.setIgnoreLimit(ignore_limit)
moss.setNumberOfMatchingFiles(number_of_matching_files) moss.setNumberOfMatchingFiles(number_of_matching_files)
moss.setCommentString(function_args_string)
# Add template file(s) # Add template file(s)
logging.info("Template: {}".format(template)) logging.info("Template: {}".format(template))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment