Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #456 from vmware/saymyname.kerneltime
Browse files Browse the repository at this point in the history
Print the VM name for which request is being processed.
  • Loading branch information
kerneltime committed Jun 10, 2016
2 parents 52624ba + 5757383 commit 6d7f217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion esx_service/utils/log_config.py
Expand Up @@ -51,7 +51,7 @@
"formatters": {
"standard": {
"format":
"%(asctime)-12s %(process)d [%(levelname)-7s] %(message)s",
"%(asctime)-12s %(process)d [%(threadName)s] [%(levelname)-7s] %(message)s",
"datefmt": "%x %X",
}
},
Expand Down
2 changes: 2 additions & 0 deletions esx_service/vmdk_ops.py
Expand Up @@ -40,6 +40,7 @@
import signal
import subprocess
import sys
import threading
import time
from ctypes import *

Expand Down Expand Up @@ -702,6 +703,7 @@ def handleVmciRequests(port):
else:
details = req["details"]
opts = details["Opts"] if "Opts" in details else {}
threading.currentThread().setName(vm_name)
ret = executeRequest(vm_name, cfg_path, req["cmd"],
details["Name"], opts)
logging.info("executeRequest '%s' completed with ret=%s",
Expand Down

0 comments on commit 6d7f217

Please sign in to comment.