Commit 8dc4a183 by Ben Patterson

Clarifying comments.

parent 4b897a21
...@@ -648,6 +648,9 @@ def collect_assets(systems, settings, debug=None, collectstatic_log=None): ...@@ -648,6 +648,9 @@ def collect_assets(systems, settings, debug=None, collectstatic_log=None):
`settings` is the Django settings module to use. `settings` is the Django settings module to use.
`debug` and `collectstatic_log` are used for determining where to `debug` and `collectstatic_log` are used for determining where to
pipe collectstatic logging. pipe collectstatic logging.
If both 'debug' and 'collecstatic_log' are passed, outputting to
a file takes precedence.
""" """
# unless specified, collectstatic (which can be very verbose) pipes to /dev/null # unless specified, collectstatic (which can be very verbose) pipes to /dev/null
...@@ -656,7 +659,7 @@ def collect_assets(systems, settings, debug=None, collectstatic_log=None): ...@@ -656,7 +659,7 @@ def collect_assets(systems, settings, debug=None, collectstatic_log=None):
# pipe to console # pipe to console
collectstatic_stdout_str = "" collectstatic_stdout_str = ""
if collectstatic_log: if collectstatic_log:
# pipe to specified file # pipe to specified file, even if debug has also been passed in
collectstatic_stdout_str = "> {output_file}".format(output_file=collectstatic_log) collectstatic_stdout_str = "> {output_file}".format(output_file=collectstatic_log)
for sys in systems: for sys in systems:
......
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