In Lucee Docker Image, ORM logs are not being updated

Description

On initial startup, two ORM logs are created (expected). Locations at :

/opt/lucee/server/lucee-server/context/logs/orm.log /opt/lucee/web/logs/orm.log

However, these files are never updated. When using the following directive in the application.cfc :

this.ormsettings = { logsql: true};

the expectation is that one of the above log files be populated with SQL debugging statements and the statements that were executed against the DB. There are references in the docs that log4j settings would need to be updated, but it is very difficult to inject these into stateful containers.

Normal practice would be to soft-link these files to /dev/stdout in order to capture these logs to the docker/k8 console.

Environment

lucee/lucee:5.4.0.80-light and lucee/lucee:6.0.0.477-SNAPSHOT-light

Activity

Show:

Pothys - MitrahSoft 18 October 2024 at 13:54
Edited

, I have investigated this ticket with Lucee version 6.2.0.167-SNAPSHOT. When I tried to insert/update data in the database using the ORM concept by enabling this.ormEnabled = true and setting this.ormsettings.logSQL = true, I found that the orm.log file on both the server and web became empty. It seems to be a valid bug.

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

Created 25 June 2023 at 23:37
Updated 28 November 2024 at 15:23

Flag notifications