logs-cf-plugin 0.0.35.pre → 0.0.36.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjQ5NjYzNWRmZjhiZGRjZjRiZWU5Y2MyODczMzI4MTNlODE5YTM3Mg==
4
+ OWQ4ODQ5MDgxZTBlZDFiNTAxZWI4ODRjODAxM2VjNTAwMWRjY2E5Yw==
5
5
  data.tar.gz: !binary |-
6
- YjMyMDNhMWY2ZWE1NDZmOTFlM2U0OGQ2M2FkNWI2MzA3YjhmZDgwNA==
6
+ YjJiZWRlZjEzNDQwNmNlZWZjZThlNTE3ZjE0Y2I0NTAwMWI2MzBlZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmFmOTgzNWU0MjhkOGUwNTRlZWFhZWMxYmFmMmRjMDBkNTFmNDM0Zjg4NmJm
10
- YjEyMDkyZjIxYjZhMTU1OGY3YmFmZjJmNWVlYjAzZDEwYzA2YmIwOWJiNTFj
11
- NDJkZGNjYzY2OTJmYTIzMDVjYjRhZmJiNGJhM2VmOWM4YWE1ODc=
9
+ NTgyOTYwODkxODEwNjIzOGY5YThjOWExYjYxMTA1YzMwYmI4NGUzOWVhZWRm
10
+ ZDMyNmI4ZDgzNDZlMjFhNjA5YWE0NTE1N2M2NTUzNDA4NDMyNDhlNGZjMjU5
11
+ ZWJlNmJiOWM4M2I0OGY5MzFhZTc3NTRiYmI2MmFiNDMyNDc5YWM=
12
12
  data.tar.gz: !binary |-
13
- YjEwMDYyZDdkY2M5MGQ3NzNmZWFhMDM5OTQxZDlhYjJjMTNlNTk2M2RmZjA2
14
- MmNmM2MwMThmNGI1YzM0NjExNGMwNDc2OGE2OWNhZmYwYjQ4ODliZWRjNzUw
15
- MTZlM2E0ZmRjNGNkNzc4OTRiNmY3ODAwMWI2MGJlMTY1MTQzMTU=
13
+ YzM3ODQ3YWZkMGMyM2Q2ZTFiNDdiNDAyMjQ0OTU5MzMxNzYwZTNmMWVjYmE3
14
+ NTJhNzk1ODE4MGIxNTg3YzRkZDNlNzRjZDVmY2Q4MzJkNTU4ZDYzZGYxNTAx
15
+ MTdiMzBkN2U0ZGFmYWNlODQ5MDNlMGJjNTJiZmMzMThiYmU2MTA=
@@ -85,7 +85,19 @@ module LogsCfPlugin
85
85
 
86
86
  response = http.request(request)
87
87
 
88
- return [] unless response.code == "200"
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 = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logs-cf-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35.pre
4
+ version: 0.0.36.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal