chef-boneyard / opscode-pushy-client

Client API for Pushy
Apache License 2.0
12 stars 14 forks source link

Duplicated logging #194

Open scalp42 opened 4 years ago

scalp42 commented 4 years ago

Hi folks,

When running a job, we noticed that /var/log/chef/push-jobs-client.log log multiple times the same line.

Here's an example with a simple uptime job running the uptime command:

[2019-11-07T23:17:45+00:00] INFO: [UNKNOWN] Job UNKNOWN: whitelist 'uptime' to 'uptime'
[2019-11-07T23:17:45+00:00] INFO: [UNKNOWN] Job UNKNOWN: whitelist 'uptime' to 'uptime'
[2019-11-07T23:17:45+00:00] INFO: [UNKNOWN] Job UNKNOWN: whitelist 'uptime' to 'uptime'
[2019-11-07T23:17:45+00:00] INFO: [jumphost-i-089d6ecdda7cbb7d7] Received commit 52e192b02b0183785f27be6892c43759
[2019-11-07T23:17:45+00:00] INFO: [jumphost-i-089d6ecdda7cbb7d7] Received run 52e192b02b0183785f27be6892c43759
[2019-11-07T23:17:45+00:00] INFO: [UNKNOWN] Job UNKNOWN: whitelist 'uptime' to 'uptime'
[2019-11-07T23:17:45+00:00] INFO: [UNKNOWN] Job UNKNOWN: whitelist 'uptime' to 'uptime'
[2019-11-07T23:17:45+00:00] INFO: [jumphost-i-089d6ecdda7cbb7d7] Job 52e192b02b0183785f27be6892c43759: started command 'uptime' with PID ''
[2019-11-07T23:17:45+00:00] INFO: [jumphost-i-089d6ecdda7cbb7d7] Job 52e192b02b0183785f27be6892c43759 completed with exit code 0

We're on Ubuntu 18.04, push client version 2.5.6, chef version 14.12.9