Skip to content

Commit a9f3c6c

Browse files
committed
Refactor logging in Laravel automation script
- Replaced echo statements with debug_log calls for improved logging in the `artisan_storage_link` and automation check sections of the entrypoint script. - This change enhances the verbosity of log output, aiding in debugging and monitoring of Laravel automations.
1 parent e5c1e68 commit a9f3c6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/etc/entrypoint.d/50-laravel-automations.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ artisan_migrate() {
154154

155155
artisan_storage_link() {
156156
if [ -d "$APP_BASE_DIR/public/storage" ]; then
157-
echo "✅ Storage already linked..."
157+
debug_log "✅ Storage already linked..."
158158
return 0
159159
else
160160
echo "🔐 Running storage link: \"php artisan storage:link\"..."
@@ -453,7 +453,7 @@ if laravel_is_installed; then
453453
done
454454
fi
455455

456-
echo "🤔 Checking for Laravel automations..."
456+
debug_log "🤔 Checking for Laravel automations..."
457457
if [ "$AUTORUN_LARAVEL_STORAGE_LINK" = "true" ]; then
458458
artisan_storage_link
459459
fi

0 commit comments

Comments
 (0)