File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ def self.initialize_default_settings!(settings)
172
172
end
173
173
end
174
174
} ,
175
+ :skip_logging_catalog_request_destination => {
176
+ :default => false ,
177
+ :type => :boolean ,
178
+ :desc => "If you wish to suppress the notice of which compiler supplied the
179
+ catalog" ,
180
+ } ,
175
181
:merge_dependency_warnings => {
176
182
:default => false ,
177
183
:type => :boolean ,
Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ def find(request)
16
16
session = Puppet . lookup ( :http_session )
17
17
api = session . route_to ( :puppet )
18
18
19
- ip_address = begin
20
- " (#{ Resolv . getaddress ( api . url . host ) } )"
21
- rescue Resolv ::ResolvError
22
- nil
19
+ unless Puppet . settings [ :skip_logging_catalog_request_destination ]
20
+ ip_address = begin
21
+ " (#{ Resolv . getaddress ( api . url . host ) } )"
22
+ rescue Resolv ::ResolvError
23
+ nil
24
+ end
25
+ Puppet . notice ( "Requesting catalog from #{ api . url . host } :#{ api . url . port } #{ ip_address } " )
23
26
end
24
- Puppet . notice ( "Requesting catalog from #{ api . url . host } :#{ api . url . port } #{ ip_address } " )
25
27
26
28
_ , catalog = api . post_catalog (
27
29
request . key ,
You can’t perform that action at this time.
0 commit comments