Commit d191b402 authored by scmalte's avatar scmalte

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

parent 34f6d05a
......@@ -24,6 +24,9 @@ def run_moss(
report_subdir=DEFAULT_REPORT_SUBDIR,
connections=DEFAULT_CONNECTIONS):
# Get a string representation of all function arguments, for logging purposes
function_args_string = str(locals())
# Initialisation
logging.info("User id: {}".format(user_id))
logging.info("Language: {}".format(language))
......@@ -36,6 +39,7 @@ def run_moss(
moss.setIgnoreLimit(ignore_limit)
moss.setNumberOfMatchingFiles(number_of_matching_files)
moss.setCommentString(function_args_string)
# Add template file(s)
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