Message7034

Author amak
Recipients amak, irmen, otmarhumbel, whistler11783
Date 2012-04-06.21:08:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333746499.15.0.736098398918.issue1808@psf.upfronthosting.co.za>
In-reply-to
Content
OK, I found another workaround that should work.

Before you use your logging code, execute the following

###########

import os

if not hasattr(os, 'getpid'):
    from java.lang.management import ManagementFactory
    _getpid = lambda: int(ManagementFactory.getRuntimeMXBean().name.split("@")[0])
    setattr(os, "getpid", _getpid)

###########

Please let me know if this works for you.
History
Date User Action Args
2012-04-06 21:08:19amaksetmessageid: <1333746499.15.0.736098398918.issue1808@psf.upfronthosting.co.za>
2012-04-06 21:08:19amaksetrecipients: + amak, otmarhumbel, irmen, whistler11783
2012-04-06 21:08:19amaklinkissue1808 messages
2012-04-06 21:08:18amakcreate