Debugging & Logging

MiServer is Dyalog's APL-based web development framework

Debugging & Logging

Postby MBaas on Thu Sep 24, 2015 5:44 am

For the live-version of my site, I changed settings in server.xml:
Code: Select all
<Production>1</Production>
<TrapErrors>1</TrapErrors>
<Debug>0</Debug>


However, I noticed that errors still show code to the user:
Code: Select all
Server Error in '/goto.dyalog'.

Unhandled Exception Error

Description: An unhandled exception occurred during the execution of the current web request.

Exception Details:

INDEX ERROR
Render[8] :If hash≢1⊃,cmp ⋄ _Request.Session.Message←'E' 'Ungültiger Seitenaufruf' ⋄ →0 ⋄ :EndIf


Is that the intended behaviour? I would not like my site showing any APL to the users, this is just too confusing (I'm dealing with "normal" ppl) - there should be a (friendly) plain-text-msgs telling them abt. a fault preventing normal execution (it would be great if this was one of the CommonPages, so that I could make sure it uses consistent & pleasant design)- and, since I've set <LogMessageLevel>1</LogMessageLevel>, an entry into the log would be great. But I haven't been able yet to figure out how logging works. Has anyone had more sucess with logging?
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

Return to MiServer

Who is online

Users browsing this forum: No registered users and 1 guest