Skip to content

Commit b3b7806

Browse files
committed
enable logging for the restart command
1 parent 4834fd7 commit b3b7806

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nginx: nginx
2-
dockergen: docker-gen -watch -only-exposed -notify "/app/reload-nginx" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
2+
dockergen: docker-gen -watch -only-exposed -notify-output -notify "/app/reload-nginx" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
33
dnsmasq: dnsmasq --no-daemon --port=19322 --no-resolv --address=/hostmachine.$DOMAIN_TLD/$HOSTMACHINE_IP --address=/.$DOMAIN_TLD/$DNS_IP

join-networks.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ func main() {
3333
toJoin := getNetworksToJoin(currentNetworks, bridgeNetworks)
3434
toLeave := getNetworksToLeave(currentNetworks, bridgeNetworks)
3535

36+
fmt.Printf("currently in %d networks, found %d bridge networks, %d to join, %d to leave\n", len(currentNetworks), len(bridgeNetworks), len(toJoin), len(toLeave))
37+
3638
for _, id := range toLeave {
37-
fmt.Printf("leaving network %s", id)
39+
fmt.Printf("leaving network %s\n", id)
3840
err := client.DisconnectNetwork(id, docker.NetworkConnectionOptions{
3941
Container: *containerName,
4042
})
@@ -44,7 +46,7 @@ func main() {
4446
}
4547

4648
for _, id := range toJoin {
47-
fmt.Printf("joining network %s", id)
49+
fmt.Printf("joining network %s\n", id)
4850
err := client.ConnectNetwork(id, docker.NetworkConnectionOptions{
4951
Container: *containerName,
5052
})

0 commit comments

Comments
 (0)