Skip to content

Commit fd1f37a

Browse files
v1.1.20
added LOG_TYPE_FILE_PATTERN to TRAEFIK
1 parent ee8ce9e commit fd1f37a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

resources/scripts/logs/traefik.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ function traefik(){
6060

6161
echo -e "\n\tAdding proxy logs..."
6262
IFS=$'\n'
63-
for file in $(find "${goan_log_path}" -name 'access.log');
63+
64+
if [[ -z "${LOG_TYPE_FILE_PATTERN}" ]]; then
65+
LOG_TYPE_FILE_PATTERN="access.log"
66+
else
67+
LOG_TYPE_FILE_PATTERN="*.log"
68+
fi
69+
70+
for file in $(find "${goan_log_path}" -name "${LOG_TYPE_FILE_PATTERN}");
6471
do
6572
if [ -f $file ]
6673
then

0 commit comments

Comments
 (0)