Skip to content

Improve verbosity for log output#671

Open
jaydrogers wants to merge 2 commits intorelease/webserver-improvements-and-fixesfrom
improve-verbosity
Open

Improve verbosity for log output#671
jaydrogers wants to merge 2 commits intorelease/webserver-improvements-and-fixesfrom
improve-verbosity

Conversation

@jaydrogers
Copy link
Copy Markdown
Member

What PR Does

Fix SERVERSIDEUP_DEFAULT_COMMAND for FrankenPHP

FrankenPHP's default CMD (frankenphp run ...) was not recognized as a default server command. This meant any logic gated behind SERVERSIDEUP_DEFAULT_COMMAND silently skipped for FrankenPHP containers. Added "frankenphp" to the case match alongside /init and php-fpm.

Skip SSL script for non-server commands

Running docker compose run php composer install on a web server variation (fpm-nginx, fpm-apache, frankenphp) no longer prints SSL-related messages or generates certificates. The SSL script now exits early when the container is not starting its primary server process. Informational messages like "SSL mode is off" and "certs already exist" are now debug-only — errors and cert generation confirmations remain visible.

Remove broken off value from LOG_OUTPUT_LEVEL

The value off was documented and partially handled in the container info script, but 1-log-output-level.sh rejected it — stopping the container. Removed the dead off check. Use SHOW_WELCOME_MESSAGE=false to suppress the welcome banner instead.

Fix FrankenPHP address-level debug log

When LOG_OUTPUT_LEVEL=debug, the per-site (address) Caddy log was defaulting to INFO instead of DEBUG. Now matches the global debug snippet.

Update LOG_OUTPUT_LEVEL documentation

  • Lists all 8 valid values: debug, info, notice, warn, error, crit, alert, emerg
  • Explains why FrankenPHP defaults to info (Caddy unifies access and error logs — warn suppresses HTTP request logs entirely)

- Updated the `LOG_OUTPUT_LEVEL` description in the documentation to clarify verbosity levels and their impact on logging behavior.
- Modified the entrypoint script to remove unnecessary checks for `LOG_OUTPUT_LEVEL` when displaying container info.
- Added checks in the SSL generation script to conditionally log messages based on the `LOG_OUTPUT_LEVEL`, improving debugging capabilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant