<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-06-23 8:41 GMT+02:00 Simone Federici <span dir="ltr"><<a href="mailto:s.federici@gmail.com" target="_blank">s.federici@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>altro suggerento per loggare elementi costosi a livello computazionale tipo json.dumps() è wrapparli con <span></span><font size="2"><span style="background-color:rgba(255,255,255,0)">isEnabledFor</span></font></div><div><br></div><div><span style="background-color:rgba(255,255,255,0)"><span style="font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">i<font size="2"><span>f</span></font></span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline"> logger</span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">.</span></span><font size="2"><span style="background-color:rgba(255,255,255,0)">isEnabledFor</span></font><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">(</span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">logging</span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">.</span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">DEBUG</span><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">):</span></div></div><div><span style="background-color:rgba(255,255,255,0)"><span style="font-size:small;font-style:inherit;font-variant:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline"> logger.debug('dump: %s', json.dumps())</span></span></div></blockquote></div><br></div><div class="gmail_extra">Grazie, sono davvero ottime metodologie. Il debug e' sempre la parte rognosa. E fortuna che python da lo stacktrace. Quando uso hjQuery e mi da errore sulla riga 4 di jquery-min.js (ovvio che non e' li l'errrore ma in qualche mia chiamata) e' roba da uscirci matti.<br></div><div class="gmail_extra"><br clear="all"></div><div class="gmail_extra">Carlos<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">EZLN ... Para Todos Todo ... Nada para nosotros<br></div></div></div></div>
</div></div>