Skip to content

Commit c8dc506

Browse files
committed
Improve log format
1 parent 29696ed commit c8dc506

File tree

1 file changed

+6
-5
lines changed
  • readthedocs/restapi/templates/restapi

1 file changed

+6
-5
lines changed

readthedocs/restapi/templates/restapi/log.txt

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
RTD build information
2-
Build: {{ build.id }}
3-
Project: {{ build.project }}
4-
Version: {{ build.commit }}
1+
Read the Docs build information
2+
Build id: {{ build.id }}
3+
Project: {{ build.project_slug }}
4+
Version: {{ build.version_slug }}
5+
Commit: {{ build.commit }}
56
Date: {{ build.date }}
67
State: {{ build.state }}
7-
{% if build.state == 'finished' %}Success: {{ build.success }}{% endif %}
8+
Success: {% if build.state == 'finished' %}{{ build.success }}{% else %}Unknown{% endif %}
89

910
{% for command in build.commands %}
1011
[rtd-command-info] start-time: {{ command.start_time }}, end-time: {{ command.end_time }}, duration: {{ command.run_time }}, exit-code: {{ command.exit_code }}

0 commit comments

Comments
 (0)