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

Print the VM name for which request is being processed. #456

Merged
merged 1 commit into from Jun 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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