[QGIS-Developer] connecting to QgsNetworkAccessManagers signals
Alessandro Pasotti
apasotti at gmail.com
Fri Jan 18 03:13:19 PST 2019
On Fri, Jan 18, 2019 at 12:10 PM Richard Duivenvoorde <rdmailings at duif.net>
wrote:
> Hi Devs,
>
> I'm doing a simple small proof of concept of a minimal plugin which
> connects to the QgsNetworkAccesManager.instance()'s signals to log the
> requests that are fired and show them in de message panel.
>
> https://github.com/rduivenvoorde/qgisnetworklogger
>
> This is going fine for wms and wfs requests or python stuff which uses
> the same instance.
>
> But other parts of QGIS apparently use another instances?
> Or can there another reason I do not connect to their signals?
>
> Eg for a WMS I see the GetCapabilities en GetLegendGraphic, but not the
> actual WMS requests, while you can see them in the debug messages if you
> have debug enabled.
>
> Same with WFS and WMTS tile requests.
>
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.
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190118/c267fbb4/attachment.html>
More information about the QGIS-Developer
mailing list