<div dir="ltr"><br><div class="gmail_quote">2008/9/14 Andrew Bennetts <span dir="ltr">&lt;<a href="mailto:andrew@canonical.com">andrew@canonical.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Marius Kruger wrote:<br>
</div><br><div class="Ih2E3d">
&gt; do you think we should get `wsgi.make_app()` to do this automatically?<br>
&gt;<br>
&gt; then we can add additional parameters:<br>
&gt; smart_server_app = wsgi.make_app(<br>
&gt; &nbsp; &nbsp; root=&#39;/var/lib/gforge/bzrroot&#39;,<br>
&gt; &nbsp; &nbsp; prefix=&#39;/bzr/&#39;,<br>
&gt; &nbsp; &nbsp; path_var=&#39;REQUEST_URI&#39;,<br>
&gt; &nbsp; &nbsp; readonly=False,<br>
&gt; &nbsp; &nbsp; load_plugins=True,<br>
&gt; &nbsp; &nbsp; logfile=&#39;/var/log/bazaar.fcgi.log&#39;,<br>
&gt; )<br>
<br>
</div>I think that&#39;s a good idea.<br>
<div class="Ih2E3d"><br>
&gt; note I also want to get the logging working (properly set, or properly<br>
&gt; disabled), because I get a lot of `No handlers could be found for logger<br>
&gt; &quot;bzr&quot;` in my apache log.<br>
&gt;<br>
&gt; I&#39;ll probably hack a patch together for this soon, if it sounds ok to you.<br>
<br>
</div>It does, thank you!<font color="#888888"><br>
-Andrew.<br>
<br>
</font></blockquote></div><br>Here is a quick patch which adds `load_plugins=True, enable_logging=True` parameters<br>to wsgi.make_app ()<br>Which allows&nbsp; bzr+http:// users to easily get plugins loading and logs written!<br>
<br>* I didn&#39;t give the option to name the log file, because I didn&#39;t have the time and energy now.<br>&nbsp;&nbsp; So if people think its a must-have, I can do that a little later.<br>* I could not find a good place to add tests, and saw that tests for this might be quite tricky.<br>
* I would add news if people are happy with what I did so far.<br><br clear="all"><br>-- <br>regards<br>Marius<br><br>&lt;&gt;&lt;<br><a href="http://amanica.blogspot.com/">http://amanica.blogspot.com/</a><br><br><br>
</div>