Should I use Git Branch for the extra logging code for a nasty production-only bug?
===

I have a live web site where a bug is manifesting only in PROD.  I was thinking that rather than implement some logging on my prod branch I'd make a special short-lived logging branch and check that out into PROD having first tested it in my staging server.  Then, I can switch back to the main trunk branch once I troubleshooted the issue.

I realize that testing in PROD is wrong but we cannot reproduce this bug in the staging server.  Am I missing an approach or, can you comment on the danger of pulling a branch (which is not very divergent from trunk) into production?