-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too much DEBUG info from MS 6.2.1 #4662
Comments
|
These debug messages are there because you probably have a DEBUG level defined at the LAYER level. If this is the case, for me this is not a bug, so please close accordingly. |
|
Unfortunately that is not the case. I am using mapfiles which have been in production for about 4 years with Mapserver 5.x and 6.0 versions. I have debug lines on every layer but they are all commented # DEBUG 5 and I did a try by deleting DEBUG lines totally. |
|
The debug code in question is here https://github.com/mapserver/mapserver/blob/branch-6-2/mapdraw.c#L625 and leaves little doubt that the debug message will only be printed if layer->debug is set. An to my knowledge, there have been no changes to the debug logging in 6.2 compared to 6.0. |
|
Mapserver has been compiled by another person. From the documents I have he has first installed these on CentOS yum install libpng-devel cairo-devel db4-devel Then he has compiled programs in this order: Config options for Mapserver were as follows: Then the Linux man did make;make install. If this is not enough for giving a hint about why I keep on getting debug data I have whole lot of stuff in installation directories like config.log. |
|
I agree with Thomas that you are likely not using the mapfile you think you are. Perhaps try to trim it down until you have the smallest possible testcase to reproduce the issue and then the source of the problem will become more obvious. Another possibility might be that you have the MS_DEBUGLEVEL environment variable set in your environment, which is another way to turn on debug logs. |
|
I do believe that this is impossible but it does really happen for me. I made a totally new mapfile "fake.map" and placed DEBUG OFF into MAP level and also into LAYER level. MAP When I connect this new service for the first time the errorfile appears and starts to collect data [Tue Jun 4 16:31:45 2013].496594 msLoadMap(): 0.001s And a little bit more info: I can change the DEBUG level on the fly and get more info by editing the mapfile to have DEBUG 5. DEBUG 0 gathers less info but the minimum is what you can see from above. Looks like my server has a fixed minimum debug level but it is none of the standard levels. If I use DEBUG 1 in the mapfile I am getting also msSearchDiskTree messages. With DEBUB 0 I get only those QUERY_STRING lines. |
|
Looks like you may have the MS_DEBUGLEVEL environment variable set somewhere: The QUERY_STRING debug statements should appear only if you set the MS_DEBUGLEVEL environment variable since they are generated before the mapfile is read. Can you please confirm that you do not have the MS_DEBUGLEVEL environment variable set in your Apache config or in some boot scripts? |
|
Thanks Daniel, you were right from the beginning. Before closing I make a summary here and in the Mapserver users mailing list. The very reason was that Linux server admin without experience on Mapserver copied httpd.conf from MS4W installation and removed a comment from here uncomment the following lines to log MapServer errors to a file#SetEnv MS_DEBUGLEVEL 3 Logging errors to a file feels like a good idea and not dangerous at all. However the comment is misleading and debug level 3 collects much more info than just errors. I believe that this setting it is unsuitable for most production system and I will write a note for Jeff McKenna and suggest to add another comment line for warning. Mapserver documentation deals with debug in 4 places: After carefully reading the documentation I feel only moderately ashamed for not finding that the reason for my trouble was in MS_DEBUGLEVEL environment variable. Both [1] and [2] are telling about this only Documents [3] and [4] contain the same text about having set both MS_DEBUGLEVEL and DEBUG That is not totally true and it it also somehow documented that DEBUG will not always override MS_DEBUGLEVEL totally because Conclusions:
From my experience the debugging document should strongly encourage to use layer or map level DEBUG for all regular needs instead of MS_DEBUGLEVEL. |
|
May I suggest that you submit a pull request against the mapserver/docs repository with your suggested docs change? Thanks in advance. |
We have compiled Mapserver 6.2.1 for Linux and the version info is as follows
MapServer version 6.2.1
OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
This version writes whole lot of debug info into MS_ERRORFILE even if I do not have DEBUG line in the mapfile at all or if I have set it to DEBUG 0 or DEBUG OFF.
An example output from one WMS GetMap requers GROUP layer which is combined from 11 scale dependent layers follows. The same mapfile on MS 6.0 on Windows (MS4W) does not produce any output into the errorfile it there is no DEBUG row in the mapfile or if the debug level is set to 0 or OFF.
[Mon Jun 3 16:12:25 2013].799634 loadParams() QUERY_STRING: map=/test.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=776&LAYERS=group&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-302742.3606628045,6634887.305484046,1741121.9462003412,8132563.133742593&SRS=EPSG:3067&STYLES=
[Mon Jun 3 16:12:25 2013].801140 msLoadMap(): 0.001s
[Mon Jun 3 16:12:25 2013].802506 msLayerIsVisible(): Skipping layer (mml_taustakartta_2) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802522 msLayerIsVisible(): Skipping layer (mml_taustakartta_3) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802528 msLayerIsVisible(): Skipping layer (mml_taustakartta_4) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802533 msLayerIsVisible(): Skipping layer (mml_taustakartta_5) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802537 msLayerIsVisible(): Skipping layer (mml_taustakartta_6) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802542 msLayerIsVisible(): Skipping layer (mml_taustakartta_7) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802546 msLayerIsVisible(): Skipping layer (mml_taustakartta_8) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802551 msLayerIsVisible(): Skipping layer (mml_taustakartta_9) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802555 msLayerIsVisible(): Skipping layer (mml_taustakartta_10) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802560 msLayerIsVisible(): Skipping layer (mml_taustakartta_11) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802566 msLayerIsVisible(): Skipping layer (mml_taustakartta_2) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802571 msLayerIsVisible(): Skipping layer (mml_taustakartta_3) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802575 msLayerIsVisible(): Skipping layer (mml_taustakartta_4) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802580 msLayerIsVisible(): Skipping layer (mml_taustakartta_5) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802584 msLayerIsVisible(): Skipping layer (mml_taustakartta_6) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802589 msLayerIsVisible(): Skipping layer (mml_taustakartta_7) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802593 msLayerIsVisible(): Skipping layer (mml_taustakartta_8) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802598 msLayerIsVisible(): Skipping layer (mml_taustakartta_9) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802602 msLayerIsVisible(): Skipping layer (mml_taustakartta_10) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802607 msLayerIsVisible(): Skipping layer (mml_taustakartta_11) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].802616 msDrawRasterLayerLow(mml_taustakartta_1): entering.
[Mon Jun 3 16:12:25 2013].802815 msResampleGDALToMap in effect: cellsize = 1932.163743
[Mon Jun 3 16:12:25 2013].803881 msDrawGDAL(mml_taustakartta_1): using RAW_WINDOW=76 93 1652 1501, dst=0,0,855,777
[Mon Jun 3 16:12:25 2013].803915 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,0
[Mon Jun 3 16:12:25 2013].847533 msDrawMap(): Layer 0 (mml_taustakartta_1), 0.045s
[Mon Jun 3 16:12:25 2013].847558 msLayerIsVisible(): Skipping layer (mml_taustakartta_2) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847564 msLayerIsVisible(): Skipping layer (mml_taustakartta_3) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847710 msLayerIsVisible(): Skipping layer (mml_taustakartta_4) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847722 msLayerIsVisible(): Skipping layer (mml_taustakartta_5) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847727 msLayerIsVisible(): Skipping layer (mml_taustakartta_6) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847732 msLayerIsVisible(): Skipping layer (mml_taustakartta_7) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847737 msLayerIsVisible(): Skipping layer (mml_taustakartta_8) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847741 msLayerIsVisible(): Skipping layer (mml_taustakartta_9) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847746 msLayerIsVisible(): Skipping layer (mml_taustakartta_10) because LAYER.MAXSCALE is too small for this MAP scale
[Mon Jun 3 16:12:25 2013].847751 msLayerIsVisible(): Skipping layer (mml_taustakartta_11) because LAYER.MAXSCALE is too small for this MAP scale
-Jukka Rahkonen-
The text was updated successfully, but these errors were encountered: