<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 18, 2019 at 12:10 PM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Devs,<br>
<br>
I'm doing a simple small proof of concept of a minimal plugin which<br>
connects to the QgsNetworkAccesManager.instance()'s signals to log the<br>
requests that are fired and show them in de message panel.<br>
<br>
<a href="https://github.com/rduivenvoorde/qgisnetworklogger" rel="noreferrer" target="_blank">https://github.com/rduivenvoorde/qgisnetworklogger</a><br>
<br>
This is going fine for wms and wfs requests or python stuff which uses<br>
the same instance.<br>
<br>
But other parts of QGIS apparently use another instances?<br>
Or can there another reason I do not connect to their signals? <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Eg for a WMS I see the GetCapabilities en GetLegendGraphic, but not the<br>
actual WMS requests, while you can see them in the debug messages if you<br>
have debug enabled.<br>
<br>
Same with WFS and WMTS tile requests.<br></blockquote><div><br></div><div>I didn't look at the code but maybe it's because the NAM instance is per-thread and WMS/WFS downloaders run within threads.</div></div><br>-- <br><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>