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

Commit

Permalink
Add debug log in function "cloneVMDK".
Browse files Browse the repository at this point in the history
  • Loading branch information
lipingxue committed Dec 8, 2016
1 parent 15610bb commit d43b42f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion esx_service/utils/log_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# since we rely on it to locate log file name after config is loaded.
LOG_CONFIG_FILE = "/etc/vmware/vmdkops/log_config.json"

LOG_LEVEL_DEFAULT = 'INFO'
LOG_LEVEL_DEFAULT = 'DEBUG'

# Defaults for log files - used to generate conf file if it is missing
# Note: log file location should be synced with CI and 'make'
Expand Down
1 change: 1 addition & 0 deletions esx_service/vmdk_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def cloneVMDK(vm_name, vmdk_path, opts={}, vm_uuid=None, vm_datastore=None):
src_vol_info = kv.get_vol_info(src_vmdk_path)
datastore = vmdk_utils.get_datastore_from_vmdk_path(vmdk_path)
opts["size"] = src_vol_info["size"]
logging.debug("cloneVMDK: src_vol_info[size]=%s", src_vol_info["size"])
error_info, tenant_uuid, tenant_name = auth.authorize(vm_uuid,
datastore, auth.CMD_CREATE, opts)
if error_info:
Expand Down

0 comments on commit d43b42f

Please # to comment.