
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 06:58 AM
While debugging a Service Portal widget server script, I placed several console.log statements in the code to examine variable values through a loop. There should have been 48 items printed to the console, but only a few showed up.
So I pulled the system logs and found several statements like this:
"2017-09-07 15:17:27 (470) Default-thread-3 8022ABB5DB054F80E6C1F3421F9619EB WARNING *** WARNING *** Refusing message: CONSOLE:number: INC0695216".
Any body got any ideas as to why these statements are not getting written to the console? What would cause the "Refusing Message" warning?
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2017 04:09 AM
Hi,
You can place max 100 console.log statements per transaction ( like c.server.update statement ). After that system will refuse any log statements and place them in system logs. Unfortunately this number is not exposed outside world . so you can't modify this number.
Please Hit ✅Correct, â�ï¸�Helpful, or â�£ï¸�Like depending on the impact of the response
Thanks
- YLN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2017 01:02 PM
Hi Donald,
Could you try gs.log() intead of console.log() and review in System Logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2017 10:25 PM
Hi Donald,
Which browser you are using? If its happening on chrome check the log level of log statement selected.
Depends if you are printing info, warning or error.
Also check settings of chrome console and select preserve logs:
Thanks
Shruti
If the reply was informational, please like, mark as helpful or mark as correct!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2017 04:09 AM
Hi,
You can place max 100 console.log statements per transaction ( like c.server.update statement ). After that system will refuse any log statements and place them in system logs. Unfortunately this number is not exposed outside world . so you can't modify this number.
Please Hit ✅Correct, â�ï¸�Helpful, or â�£ï¸�Like depending on the impact of the response
Thanks
- YLN