Issues

Select view

Select search mode

 
23 of 23

syntax errors or throws in web.cfc aren't logged to console or fatal

Description

While adding a Web.cfc in the webroot, for some defensive config checks, I discovered the following

i.e. a throw

component { public function onWebStart(reload) { var as = getApplicationSettings(onlySupported=true); systemOutput("------------------------------- [ #as.listenerMode?:"unset"# ]", true); if ( structKeyExists( as, "listenerMode" ) && as.listenerMode == "modern" ){ throw "Lucee not configured to support Application.cfm, please set listenerMode to 'mixed'," & " currently set to [#as.listenerMode?:''#]"; } } }

or syntax errors

component { public function onWebStart(reload) { var as = getApplicationSettings(onlySupported=true); systemOutput("------------------------------- [ #as.listenerMode?:"unset"# ]", true); ifzzzz ( structKeyExists( as, "listenerMode" ) && as.listenerMode == "modern" ){ throw "Lucee not configured to support Application.cfm, please set listenerMode to 'mixed'," & " currently set to [#as.listenerMode?:''#]"; } } }

doesn’t even seem to log anything to the console (systemoutputs work)?

Environment

None

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 27 March 2025 at 10:07
Updated 27 March 2025 at 16:44

Activity

Show:

Zac Spitzer27 March 2025 at 10:57

I am seeing a log in the exception.log, but the initial startup is before a request, I think this should go to the console

Flag notifications