#3747 [Hotfix] Update logging handlers.py to not emit a utf8_bom for syslog
Closed: Fixed None Opened 10 years ago by toshio.

= bug description =
syslog gets things like this when the python stdlib logging module is used to emit to syslog:

Apr 12 08:00:05 blockerbugs01.stg.phx2.fedoraproject.org ¿<166>Syncing FE for milestone <milestone: 19-alpha>

The ¿<166> are there because the logging module is putting a UTF8_BOM in the message in the wrong place. Upstream python has removed the UTF8_BOM altogether in python-2.7.4 and python3. This hotfix mirrors that.

= fix recommendation =

Currently the hotfix is in
modules-staging/hotfix/init.pp: hotfix::python-logging

It's applied to all stg machines in their individual node files.

Once the freeze for alpha is over we'll want to merge this into global.pp instead (and add it to the production modules/hotfix ).


I investigated the problem and it seems to me that patch for this ticket was already applied. So I think that this ticket can be safely closed.

Our current workflow with hotfix tickets is to make one when a hotfix is created, then leave it open until the hotfix is removed. This allows us to see what hotfixes are currently applied.

Just so it's apparent, this is applied as a patch to the python package via out hotfix mechanism in puppet. We likely cannot close this until we move to python-2.7.x via RHEL7 (and we'll have to check that the python in RHEL7 contains the fix)

We have moved to python 2.7, so we no longer have or need this. ;)

Login to comment on this ticket.

Metadata