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