Skip to content

Commit 7c1f189

Browse files
authored
Merge pull request #140 from emalm/routing-api-log-rfc3339
Configure components to log human-readable RFC3339 timestamps
2 parents 1293648 + 5c7b8a9 commit 7c1f189

9 files changed

Lines changed: 11 additions & 1 deletion

File tree

jobs/route_registrar/templates/bpm.yml.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ processes:
44
args:
55
- --configPath
66
- /var/vcap/jobs/route_registrar/config/registrar_settings.json
7+
- -timeFormat
8+
- rfc3339
79
<%
810
paths = []
911
routes = p('route_registrar.routes')

jobs/routing-api/templates/bpm.yml.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ processes:
88
- <%= p("routing_api.port") %>
99
- -logLevel
1010
- <%= p("routing_api.log_level") %>
11+
- -timeFormat
12+
- rfc3339
1113
- -ip
1214
- <%= spec.ip %>
1315
<% if p("routing_api.auth_disabled") == true %>- -devMode <% end %>

jobs/tcp_router/templates/tcp_router_ctl.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ set -e
7777
exec /var/vcap/packages/tcp_router/bin/cf-tcp-router\
7878
-debugAddr=<%= p("tcp_router.debug_address") %> \
7979
-logLevel=<%= p("tcp_router.log_level") %> \
80+
-timeFormat=rfc3339 \
8081
-tcpLoadBalancerConfig="${CONFIG}" \
8182
-tcpLoadBalancerBaseConfig="/var/vcap/jobs/tcp_router/config/haproxy.conf.template" \
8283
-config="/var/vcap/jobs/tcp_router/config/tcp_router.yml" \

packages/acceptance_tests/spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ files:
1515
- code.cloudfoundry.org/cf-routing-test-helpers/schema/*.go # gosub
1616
- code.cloudfoundry.org/clock/*.go # gosub
1717
- code.cloudfoundry.org/lager/*.go # gosub
18+
- code.cloudfoundry.org/lager/internal/truncate/*.go # gosub
1819
- code.cloudfoundry.org/lager/lagerctx/*.go # gosub
1920
- code.cloudfoundry.org/lager/lagertest/*.go # gosub
2021
- code.cloudfoundry.org/routing-acceptance-tests/assets/golang/*.go # gosub

packages/gorouter/spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ files:
6060
- code.cloudfoundry.org/gorouter/test_util/rss/common/*.go # gosub
6161
- code.cloudfoundry.org/gorouter/varz/*.go # gosub
6262
- code.cloudfoundry.org/lager/*.go # gosub
63+
- code.cloudfoundry.org/lager/internal/truncate/*.go # gosub
6364
- code.cloudfoundry.org/localip/*.go # gosub
6465
- code.cloudfoundry.org/routing-api/*.go # gosub
6566
- code.cloudfoundry.org/routing-api/models/*.go # gosub

packages/route_registrar/spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
files:
88
- code.cloudfoundry.org/clock/*.go # gosub
99
- code.cloudfoundry.org/lager/*.go # gosub
10+
- code.cloudfoundry.org/lager/internal/truncate/*.go # gosub
1011
- code.cloudfoundry.org/lager/lagerflags/*.go # gosub
1112
- code.cloudfoundry.org/multierror/*.go # gosub
1213
- code.cloudfoundry.org/route-registrar/*.go # gosub

packages/routing-api/spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ files:
1717
- code.cloudfoundry.org/go-loggregator/*.go # gosub
1818
- code.cloudfoundry.org/go-loggregator/rpc/loggregator_v2/*.go # gosub
1919
- code.cloudfoundry.org/lager/*.go # gosub
20+
- code.cloudfoundry.org/lager/internal/truncate/*.go # gosub
2021
- code.cloudfoundry.org/lager/lagerflags/*.go # gosub
2122
- code.cloudfoundry.org/locket/*.go # gosub
2223
- code.cloudfoundry.org/locket/lock/*.go # gosub

packages/tcp_router/spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ files:
2828
- code.cloudfoundry.org/clock/*.go # gosub
2929
- code.cloudfoundry.org/debugserver/*.go # gosub
3030
- code.cloudfoundry.org/lager/*.go # gosub
31+
- code.cloudfoundry.org/lager/internal/truncate/*.go # gosub
3132
- code.cloudfoundry.org/lager/lagerflags/*.go # gosub
3233
- code.cloudfoundry.org/routing-api/*.go # gosub
3334
- code.cloudfoundry.org/routing-api/models/*.go # gosub

0 commit comments

Comments
 (0)