Site updated at 2017-10-07 19:25:24 UTC
This commit is contained in:
parent
8bbc40b5d1
commit
ef6d3b2ec0
678 changed files with 10476 additions and 2128 deletions
|
@ -117,7 +117,7 @@ https://home-assistant.io/components/light.mqtt/
|
|||
</code></pre>
|
||||
</div>
|
||||
<h3><a class="title-link" name="log-messages" href="#log-messages"></a> Log messages</h3>
|
||||
<p>There is no need to add the platform or component name to the log messages. This will be added automatically. Like <code class="highlighter-rouge">syslog</code> messages there shouldn’t be no period at the end. Try to avoid brackets and additional quotes around the output to make it easier for users to parse the log. A widely style is shown below but you are free to compose the messages as you like.</p>
|
||||
<p>There is no need to add the platform or component name to the log messages. This will be added automatically. Like <code class="highlighter-rouge">syslog</code> messages there shouldn’t be any period at the end. Try to avoid brackets and additional quotes around the output to make it easier for users to parse the log. A widely style is shown below but you are free to compose the messages as you like.</p>
|
||||
<div class="language-python highlighter-rouge"><pre class="highlight"><code><span class="n">_LOGGER</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s">"No route to device: </span><span class="si">%</span><span class="s">s"</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">_resource</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue