Skip to content

Commit ebba3cb

Browse files
committed
Ajout de la prise en charge des niveaux de journalisation supplémentaires dans le script d'entrée pour une meilleure gestion des erreurs.
1 parent 064cbbf commit ebba3cb

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/service_docker-build-and-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129

130130
- name: Set up QEMU
131131
uses: docker/setup-qemu-action@v3
132+
with:
133+
platforms: linux/amd64,linux/arm64
132134

133135
- name: Set up Docker Buildx
134136
uses: docker/setup-buildx-action@v3
@@ -179,7 +181,7 @@ jobs:
179181
PHP_VERSION=${{ matrix.patch_version }}
180182
PHP_VARIATION=${{ matrix.php_variation }}
181183
REPOSITORY_BUILD_VERSION=${{ env.REPOSITORY_BUILD_VERSION }}
182-
platforms: linux/amd64,linux/arm64/v8
184+
platforms: linux/amd64,linux/arm64
183185
pull: true
184186
push: ${{ inputs.push-to-registry }}
185187
tags: ${{ env.DOCKER_TAGS }}

src/common/etc/entrypoint.d/1-log-output-level.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ case "$LOG_OUTPUT_LEVEL" in
3131
set_php_ini display_startup_errors On
3232
set_php_ini error_reporting "32767" # E_ALL
3333
;;
34+
info)
35+
: # Do nothing
36+
;;
37+
notice)
38+
: # Do nothing
39+
;;
40+
warn)
41+
: # Do nothing
42+
;;
43+
error)
44+
: # Do nothing
45+
;;
46+
crit)
47+
: # Do nothing
48+
;;
49+
alert)
50+
: # Do nothing
51+
;;
52+
emerg)
53+
: # Do nothing
54+
;;
3455
*)
3556
echo "❌ ERROR ($script_name): LOG_OUTPUT_LEVEL is not set to a valid value. Please set it to one of the following: debug, info, notice, warn, error, crit, alert, emerg."
3657
return 1

0 commit comments

Comments
 (0)