I am using ArcGIS JavaScript API 2.8 and found that there are many warnings logged to the console. Because of this the messages I am logging to console are becoming difficult to identify.
Can you provide an example of the log/warning messages you're seeing?
Browser dev tools provide the ability to filter the messages you see. The default is to see all messages/logs/warnings/errors. You could click the button to see only "Logs" (in Chrome Dev tools) and you'll only see console.log messages.
Thank you! Thant make sense. The logs I was seeing fall under debug Info category. I have attached the screen shot for your reference. Is there any way to disable these debug logs in production?[ATTACH=CONFIG]21196[/ATTACH]
Is there any way to disable these debug logs in production?
That would be like putting masking tape over the "low oil" warning light 😉
Why not fix the errors? It's likely that in ArcMap, you have switched off the SHAPE field before publishing this layer to ArcGIS Server, so the SHAPE field isn't accessible to the JS API.
Thank you for the reply. I should have mentioned this before, I am using custom web services(written in Java Grails) based on ArcGIS REST specification. I can not add geometry field in it.