logs-cf-plugin 0.0.35.pre → 0.0.36.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/logs-cf-plugin/loggregator_client.rb +13 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWQ4ODQ5MDgxZTBlZDFiNTAxZWI4ODRjODAxM2VjNTAwMWRjY2E5Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjJiZWRlZjEzNDQwNmNlZWZjZThlNTE3ZjE0Y2I0NTAwMWI2MzBlZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTgyOTYwODkxODEwNjIzOGY5YThjOWExYjYxMTA1YzMwYmI4NGUzOWVhZWRm
|
10
|
+
ZDMyNmI4ZDgzNDZlMjFhNjA5YWE0NTE1N2M2NTUzNDA4NDMyNDhlNGZjMjU5
|
11
|
+
ZWJlNmJiOWM4M2I0OGY5MzFhZTc3NTRiYmI2MmFiNDMyNDc5YWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzM3ODQ3YWZkMGMyM2Q2ZTFiNDdiNDAyMjQ0OTU5MzMxNzYwZTNmMWVjYmE3
|
14
|
+
NTJhNzk1ODE4MGIxNTg3YzRkZDNlNzRjZDVmY2Q4MzJkNTU4ZDYzZGYxNTAx
|
15
|
+
MTdiMzBkN2U0ZGFmYWNlODQ5MDNlMGJjNTJiZmMzMThiYmU2MTA=
|
@@ -85,7 +85,19 @@ module LogsCfPlugin
|
|
85
85
|
|
86
86
|
response = http.request(request)
|
87
87
|
|
88
|
-
|
88
|
+
case response.code
|
89
|
+
when "200"
|
90
|
+
# fall thru
|
91
|
+
when "401"
|
92
|
+
output.puts("Unauthorized")
|
93
|
+
return
|
94
|
+
when "404"
|
95
|
+
output.puts("App #{log_target.app_name} not found")
|
96
|
+
return
|
97
|
+
else
|
98
|
+
output.puts("Error connecting to server #{response.code}")
|
99
|
+
return
|
100
|
+
end
|
89
101
|
|
90
102
|
response_bytes = StringIO.new(response.body)
|
91
103
|
messages = []
|