[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] About the granularity of DEBUG on tileindex layers
From:       Seth G <sethg () geographika ! co ! uk>
Date:       2018-11-22 7:56:17
Message-ID: 1542873377.1049221.1585366720.19522B35 () webmail ! messagingengine ! com
[Download RAW message or body]

[Attachment #2 (--_----------=_154287337710492216)]


Hi,

Just to add to the comments on logging, there is a new pull request at
https://github.com/mapserver/mapserver/pull/5707It makes sense to me that it should \
be possible to turn off logging for queries not returning features.The tests, and \
client applications however benefit from a message saying no results are returned, so \
the request can't be merged in its current state.Are there any other examples of \
returning messages to the user without logging to follow?
Seth

--
web:http://geographika.co.uk
twitter: @geographika


On Fri, Nov 16, 2018, at 5:26 PM, Lime, Steve D (MNIT) wrote:
> This isn't surprising. We haven't been real good about consistently
> using levels across the code base – cleaning that up would be a good
> project (or sprint activity) and wouldn't require deep technical
> knowledge.>  


> I'll create a ticket for the case you've pointed about below…


> 


> --Steve


> 


> *From:* mapserver-users [mailto:mapserver-users-
> bounces@lists.osgeo.org] *On Behalf Of *Rahkonen Jukka (MML) *Sent:*
> Friday, November 16, 2018 5:48 AM *To:* Mapserver-Users (mapserver-
> users@lists.osgeo.org) <mapserver-users@lists.osgeo.org> *Subject:*
> [mapserver-users] About the granularity of DEBUG on tileindex layers>  


> Hi,


> 


> I have always used just "DEBUG 5" for debugging raster layers but now
> I finally made a test with Mapserver 7.0.1 for seeing what is the real
> difference between the debugging levels. I was a bit surprised to see
> that there is not so much difference at all, and that the DEBUG 1
> level gives information that is missing from the higher debugging
> levels but that would be useful sometimes.>  


> Debug 1 prints these lines


> [Fri Nov 16 12:05:50 2018].964589 msDrawRasterLayerLow(layer_name):
> entering.> [Fri Nov 16 12:05:50 2018].980393 msDrawRasterLayerLow(layer_name):
> Filename is: path/file.TIF> [Fri Nov 16 12:05:50 2018].980423 \
> msDrawRasterLayerLow(layer_name): Path is: path/file.TIF> [Fri Nov 16 12:05:50 \
> 2018].980591 AUTO = +proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m \
> +no_defs> [Fri Nov 16 12:05:50 2018].980677 msDrawRasterLayerGDAL(): Entering \
> transform.> [Fri Nov 16 12:05:50 2018].980687 msDrawRasterLayerGDAL(): \
> src=9979,8,1786,1062, dst=0,0,1697,1009> [Fri Nov 16 12:05:50 2018].980691 \
> msDrawRasterLayerGDAL(): source raster PL (9978.817,7.700) for dst PL (0,0).> [Fri \
> Nov 16 12:05:50 2018].980700 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = \
> 1,2,3,0>  


> 


> 


> All debug levels from level 2 print these lines:


> 


> [Fri Nov 16 12:09:05 2018].581597 msDrawRasterLayerLow(layer_name):
> entering.> [Fri Nov 16 12:09:05 2018].589989 AUTO = +proj=utm +zone=35
> +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs> [Fri Nov 16 12:09:05 \
> 2018].590061 msDrawRasterLayerGDAL(): Entering transform.> [Fri Nov 16 12:09:05 \
> 2018].590069 msDrawRasterLayerGDAL(): src=2318,7977,1786,1062, dst=0,0,1697,1009> \
> [Fri Nov 16 12:09:05 2018].590073 msDrawRasterLayerGDAL(): source raster PL \
> (2317.846,7977.061) for dst PL (0,0).> [Fri Nov 16 12:09:05 2018].590081 \
> msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0> [Fri Nov 16 12:09:05 \
> 2018].720794 msDrawMap(): Layer 3 (layer_name), 0.139s>  


> 


> The only additional item that debug levels 2 and above give is the
> rendering time msDrawMap that is often useful.  But at the same time
> the filename and path items which are present at debug level 1 are
> missing.>  


> I suggest to add debug items msDrawRasterLayerLow(): Filename and
> msDrawRasterLayerLow(): Path should be added alto to debug levels >=2.
> For being even more useful the highest debug level could give also
> timings about reading the tileindex and perhaps separate timings about
> things like how long does it take to read the "src" window from each
> "Filename" and if overviews are used or not.>  


> -Jukka Rahkonen-


> _________________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users


[Attachment #5 (unknown)]

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div>Hi,<br></div>
<div><br></div>
<div>Just to add to the comments on logging, there is a new pull request at&nbsp;<a \
href="https://github.com/mapserver/mapserver/pull/5707">https://github.com/mapserver/mapserver/pull/5707</a><br></div>
 <div>It makes sense to me that it should be possible to turn off logging for queries \
not returning features.<br></div> <div>The tests, and client applications however \
benefit from a message saying no results are returned, so the request can't be merged \
in its current state.&nbsp;<br></div> <div>Are there any other examples of returning \
messages to the user without logging to follow?<br></div> <div><br></div>
<div>Seth</div>
<div><br></div>
<div id="sig62266145"><div class="signature">--</div>
<div class="signature">web:http://geographika.co.uk</div>
<div class="signature">twitter: @geographika</div>
</div>
<div><br></div>
<div><br></div>
<div>On Fri, Nov 16, 2018, at 5:26 PM, Lime, Steve D (MNIT) wrote:<br></div>
<blockquote type="cite"><div><p style="margin: 0in 0in 0.0001pt;"><span class="font" \
style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, 125)">This isn't \
surprising. We haven't been real good about consistently using levels across the code \
base – cleaning that up would be a good project (or sprint activity) and wouldn't \
require deep technical knowledge.</span></span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, \
125)">&nbsp;</span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, 125)">I'll \
create a ticket for the case you've pointed about \
below…</span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, \
125)">&nbsp;</span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, \
125)">--Steve</span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="colour" style="color:rgb(31, 73, \
125)">&nbsp;</span></span></span><br></p><div><div \
style="border-right-width:initial;border-bottom-width:initial;border-left-width:initia \
l;border-right-style:none;border-bottom-style:none;border-left-style:none;border-right \
-color:initial;border-bottom-color:initial;border-left-color:initial;border-image-sour \
ce:initial;border-image-slice:initial;border-image-width:initial;border-image-outset:i \
nitial;border-image-repeat:initial;border-top-width:1pt;border-top-style:solid;border-top-color:rgb(225, \
225, 225);padding-top:3pt;padding-right:0in;padding-bottom:0in;padding-left:0in;"><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><b>From:</b> mapserver-users \
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Rahkonen Jukka \
(MML)<br> <b>Sent:</b> Friday, November 16, 2018 5:48 AM<br> <b>To:</b> \
Mapserver-Users (mapserver-users@lists.osgeo.org) \
&lt;mapserver-users@lists.osgeo.org&gt;<br> <b>Subject:</b> [mapserver-users] About \
the granularity of DEBUG on tileindex layers</span></span></p></div> </div>
<p style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><span \
lang="FI">Hi,</span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span lang="FI">&nbsp;</span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt">I have always used just "DEBUG \
5" for debugging raster layers but now I finally made a test with Mapserver 7.0.1 for \
seeing what is the real difference between the debugging levels. I was a bit \
surprised to see that there is not so much  difference at all, and that the DEBUG 1 \
level gives information that is missing from the higher debugging levels but that \
would be useful sometimes.</span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">Debug 1 prints these \
lines</span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span class="font" \
style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="font" style="font-family:&quot;Courier \
New&quot;"><span class="size" style="font-size:7pt">[Fri Nov 16 12:05:50 2018].964589 \
msDrawRasterLayerLow(layer_name): entering.</span></span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980393 \
msDrawRasterLayerLow(layer_name): Filename is: \
path/file.TIF</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980423 \
msDrawRasterLayerLow(layer_name): Path is: \
path/file.TIF</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980591 AUTO = +proj=utm +zone=35 \
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m \
+no_defs</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980677 msDrawRasterLayerGDAL(): \
Entering transform.</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980687 msDrawRasterLayerGDAL(): \
src=9979,8,1786,1062, dst=0,0,1697,1009</span></span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980691 msDrawRasterLayerGDAL(): \
source raster PL (9978.817,7.700) for dst PL \
(0,0).</span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="font" style="font-family:&quot;Courier \
New&quot;"><span class="size" style="font-size:7pt">[Fri Nov 16 12:05:50 2018].980700 \
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = \
1,2,3,0</span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="font" style="font-family:&quot;Courier \
New&quot;"><span class="size" \
style="font-size:7pt">&nbsp;</span></span></span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">&nbsp;</span></span></span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">All debug levels from level 2 print these \
lines:</span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span class="font" \
style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt">&nbsp;</span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:09:05 2018].581597 \
msDrawRasterLayerLow(layer_name): entering.</span></span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:09:05 2018].589989 AUTO = +proj=utm +zone=35 \
+ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m \
+no_defs</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:09:05 2018].590061 msDrawRasterLayerGDAL(): \
Entering transform.</span></span></span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:09:05 2018].590069 msDrawRasterLayerGDAL(): \
src=2318,7977,1786,1062, dst=0,0,1697,1009</span></span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt"><span class="font" \
style="font-family:&quot;Courier New&quot;"><span class="size" \
style="font-size:7pt">[Fri Nov 16 12:09:05 2018].590073 msDrawRasterLayerGDAL(): \
source raster PL (2317.846,7977.061) for dst PL \
(0,0).</span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="font" style="font-family:&quot;Courier \
New&quot;"><span class="size" style="font-size:7pt">[Fri Nov 16 12:09:05 2018].590081 \
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = \
1,2,3,0</span></span></span></span><br></p><p style="margin: 0in 0in 0.0001pt;"><span \
class="font" style="font-family:Calibri, sans-serif"><span class="size" \
style="font-size:11pt"><span class="font" style="font-family:&quot;Courier \
New&quot;"><span class="size" style="font-size:7pt">[Fri Nov 16 12:09:05 2018].720794 \
msDrawMap(): Layer 3 (layer_name), 0.139s</span></span></span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p \
style="margin: 0in 0in 0.0001pt;"><span class="font" style="font-family:Calibri, \
sans-serif"><span class="size" style="font-size:11pt">The only additional item that \
debug levels 2 and above give is the rendering time msDrawMap that is often \
useful.&nbsp; But at the same time the filename and path items which are present at \
debug level 1 are missing.</span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">I suggest to add debug items \
msDrawRasterLayerLow(): Filename and msDrawRasterLayerLow(): Path should be added \
alto to debug levels &gt;=2.&nbsp; For being even more useful the highest debug level \
could give also timings about reading the tileindex  and perhaps separate timings \
about things like how long does it take to read the "src" window from each "Filename" \
and if overviews are used or not.</span></span><br></p><p style="margin: 0in 0in \
0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">&nbsp;</span></span><br></p><p style="margin: 0in \
0in 0.0001pt;"><span class="font" style="font-family:Calibri, sans-serif"><span \
class="size" style="font-size:11pt">-Jukka Rahkonen-</span></span><br></p></div> \
<div><u>_______________________________________________</u><br></div> \
<div>mapserver-users mailing list<br></div> <div><a style="text-decoration: \
underline; color: rgb(5, 99, 193);" \
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></div>
 <div><a style="text-decoration: underline; color: rgb(5, 99, 193);" \
href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div>
 </blockquote><div><br></div>
</body>
</html>


[Attachment #6 (text/plain)]

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic