| There are two parts to this: 1. The current intended behavior is to not log errors if we eventually find a server to connect to. In other words, only log the exceptions at the error level if we exhaust the server list:
$ bx puppet agent -t --server_list localhost:8141,localhost:8140 |
Info: Using configured environment 'production' |
Info: Retrieving pluginfacts |
..
|
But if you run with debugging you'll see the first failure followed by the second success:
The second part is if the server_list is exhausted, then the code that would normally log the exceptions at error level is bypassed. To confirm the expected behavior, are asking for puppet to log at error level any/all exceptions that occur during server list resolution, even if the resolution is eventually successful for that run? Or should it only log the exceptions if resolution fails? |