Skip to content

Commit

Permalink
refactor: Reduce number of template debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 29, 2022
1 parent aaa79ee commit 8fed314
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ log.debug("Rendering children of " + obj.path) }}
{% if obj.members %}
{{ log.debug("Rendering children of " + obj.path) }}

<div class="doc doc-children">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ log.debug("Rendering docstring") }}
{% if docstring_sections %}
{{ log.debug("Rendering docstring") }}
{% for section in docstring_sections %}
{% if section.kind.value == "text" %}
{{ section.value|convert_markdown(heading_level, html_id) }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ log.debug("Rendering labels") }}
{% if labels %}
{{ log.debug("Rendering labels") }}
<span class="doc doc-properties">
{% for label in labels %}
<small class="doc doc-label doc-label-{{ label }}"><code>{{ label }}</code></small>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ log.debug("Rendering signature of " + function.path) }}
{%- if config.show_signature -%}
{{ log.debug("Rendering signature") }}
{%- with -%}

{%- set ns = namespace(render_pos_only_separator=True, render_kw_only_separator=True, equal="=") -%}
Expand Down

0 comments on commit 8fed314

Please sign in to comment.