Skip to content

Commit f018994

Browse files
authored
Merge pull request #1319 from 3scale/THREESCALE-7906
THREESCALE-7906
2 parents d760d56 + 22e39cb commit f018994

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ jobs:
146146
- run: make test-runtime-image gateway-logs --keep-going
147147
- login-docker:
148148
command: |
149-
IMAGE_TAG="${CIRCLE_TAG:-${CIRCLE_BRANCH}}"
149+
CIRCLE_BRANCH_LOWER=`echo $CIRCLE_BRANCH | tr '[:upper:]' '[:lower:]'`
150+
IMAGE_TAG="${CIRCLE_TAG:-${CIRCLE_BRANCH_LOWER}}"
150151
if [ "${IMAGE_TAG}" == "master" ]
151152
then
152153
IMAGE_TAG="latest"
@@ -179,7 +180,8 @@ jobs:
179180
180181
- login-docker:
181182
command: |
182-
IMAGE_TAG="${CIRCLE_TAG:-${CIRCLE_BRANCH}}-builder"
183+
CIRCLE_BRANCH_LOWER=`echo $CIRCLE_BRANCH | tr '[:upper:]' '[:lower:]'`
184+
IMAGE_TAG="${CIRCLE_TAG:-${CIRCLE_BRANCH_LOWER}}-builder"
183185
if [ "${IMAGE_TAG}" == "master-builder" ]
184186
then
185187
IMAGE_TAG="latest-builder"
@@ -281,7 +283,7 @@ jobs:
281283
machine: true
282284
steps:
283285
- checkout
284-
- run: IMAGE_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}} make benchmark
286+
- run: IMAGE_TAG=`echo $CIRCLE_BRANCH | tr '[:upper:]' '[:lower:]'` make benchmark
285287
- run: IMAGE_TAG=master make benchmark
286288
- store_artifacts:
287289
path: tmp/benchmark

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3232

3333
- Fixed issues with OIDC filters [PR #1304](https://github.com/3scale/APIcast/pull/1304) [THREESCALE-6042](https://issues.redhat.com/browse/THREESCALE-6042)
3434
- Fixed issues with Upstream MTLS certs [PR #1307](https://github.com/3scale/APIcast/pull/1307) [THREESCALE-7508](https://issues.redhat.com/browse/THREESCALE-7508)
35+
- Fixed warning messages [PR #1318](https://github.com/3scale/APIcast/pull/1318) [THREESCALE-7906](https://issues.redhat.com/browse/THREESCALE-7906)
3536

3637
### Added
3738

gateway/http.d/apicast.conf.liquid

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
log_format time '[$time_local] $target_host:$server_port $remote_addr:$remote_port "$request" $status $body_bytes_sent ($request_time) $post_action_impact';
22

3-
map $status $extended_access_log {
3+
# Use maps as variables because some logs can be raised out of the server context
4+
# where variables cannot be set, this allow us to avoid a warning
5+
map "" $extended_access_log {
46
default '';
57
}
68

9+
map "" $access_logs_enabled {
10+
default '1';
11+
}
12+
13+
map "" $extended_access_logs_enabled {
14+
default '0';
15+
}
16+
17+
718
log_format extended escape=none '$extended_access_log';
819

920
server {
@@ -50,9 +61,7 @@ server {
5061
server {
5162
{% capture log_buffer %} {%if log_buffer_size %}buffer={{ log_buffer_size }} {% endif %} {% endcapture %}
5263

53-
set $access_logs_enabled '1';
5464
access_log {{ access_log_file | default: "/dev/stdout" }} time if=$access_logs_enabled {{ log_buffer }};
55-
set $extended_access_logs_enabled '0';
5665
access_log {{ access_log_file | default: "/dev/stdout" }} extended if=$extended_access_logs_enabled {{ log_buffer }};
5766

5867
{%- assign http_port = port.apicast | default: 8080 %}

0 commit comments

Comments
 (0)