luckyframework/lucky_cli

Log section for test on generated apps isn't very useful

Offen

#863 geöffnet am 03.05.2024

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)HTML (49 Forks)auto 404
hacktoberfest

Repository-Metriken

Stars
 (92 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

When you generate a new app, you get this section in your config/log.cr file

https://github.com/luckyframework/lucky_cli/blob/8344b2749c8cadc560312a4cfc6499275815377c/src/web_app_skeleton/config/log.cr.ecr#L3-L11

This used to be very helpful because back in the day when specs would run, you had a full HTTP server that booted, and you could tail this file to watch the logs and see what was going on. However, that's not the case anymore because booting an HTTP server on spec run is expensive and slow.

This leads to an issue where you run your specs, and you get a 500 error in an action, and tailing this log just looks like this

image

We need to figure out how we can rework this so your queries and errors and everything can go to this file and not STDOUT to the terminal. You should be able to tail this file while running specs and get good information as to what queries your spec is running and what exceptions or errors you're hitting.

Contributor Guide