FreshPorts / git_proc_commit

Tools for processing git commits one at a time.
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

items being logged twice #39

Closed dlangille closed 3 years ago

dlangille commented 3 years ago

Items are being logged twice:

*** /var/log/freshports//freshports.log ***
Apr  6 21:04:11 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'ed8d3eda309dd863fb66e04bccaa513eee255cbf Mark the repository has been converted to Git'
Apr  6 21:04:11 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'ed8d3eda309dd863fb66e04bccaa513eee255cbf Mark the repository has been converted to Git'
Apr  6 21:04:12 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'a663968e406bd0e2e75256aa3823894e320bbe31 audio/fasttracker2: Update to 1.46'
Apr  6 21:04:12 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'a663968e406bd0e2e75256aa3823894e320bbe31 audio/fasttracker2: Update to 1.46'
Apr  6 21:04:12 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'b9ad876d99f0fc6c13717b25f9721070e1bf0c62 devel/py-Js2Py: update to 0.71'
Apr  6 21:04:12 devgit-ingress01 git-to-freshports-xml.py[11491]:[INFO] Processing commit 'b9ad876d99f0fc6c13717b25f9721070e1bf0c62 devel/py-Js2Py: update to 0.71'
skozlov404 commented 3 years ago

Hi Dan,

That's weird. I can only see one Processing commit ... statement in the code. Can it be that there's two syslog paths to the log? Could you please post the cat /etc/syslog.conf and cat /etc/syslog.d as well as the arguments for the git-to-freshports-xml.py, so I can take a closer look?

dlangille commented 3 years ago

I am sure it is the configuration and not the code. I will check when things go a bit quieter.

dlangille commented 3 years ago

I found this:

Apr 6 21:10:07 devgit-ingress01 sudo[25302]: dan : TTY=pts/3 ; PWD=/usr/local/etc/syslog.d ; USER=root ; COMMAND=/usr/sbin/service syslogd restart

Seems I fixed it back then.