use log attribute %(process)d instead of os.getpid (#18691)
This commit is contained in:
parent
ba56c87566
commit
47a7cb733a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ logger = logging.getLogger('injector') # pylint: disable=locally-disabled, inva
|
|||
|
||||
def main():
|
||||
"""Main entry point."""
|
||||
formatter = logging.Formatter('%(asctime)s ' + str(os.getpid()) + ' %(levelname)s %(message)s')
|
||||
formatter = logging.Formatter('%(asctime)s %(process)d %(levelname)s %(message)s')
|
||||
log_name = 'ansible-test-coverage.%s.log' % getpass.getuser()
|
||||
self_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
|
Loading…
Reference in a new issue