Revert back errors

This commit is contained in:
PCoder 2020-06-10 13:36:30 +05:30
parent 4bff49dab6
commit af36a49366
1 changed files with 2 additions and 2 deletions

View File

@ -1787,7 +1787,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
try:
manager.get_vm(vm.id)
except WrongIdError:
logger.debug(
logger.error(
"VM {} not found. So, its terminated.".format(vm.id)
)
response['status'] = True
@ -1798,7 +1798,7 @@ class VirtualMachineView(LoginRequiredMixin, View):
vm_detail_obj.terminated_at = datetime.utcnow()
vm_detail_obj.save()
except BaseException as base_exception:
logger.debug(
logger.error(
"manager.get_vm({vm_id}) returned exception: "
"{details}.".format(
details=str(base_exception), vm_id=vm.id