Commit 85a189fb authored by David Munro's avatar David Munro Committed by Commit Bot

crostini: Log the error reason when we fail to create a container.

Bug: None
Test: Manual, check logs after failing to create a container
Change-Id: I56d456878fe61156307c7060f844477efa8b330e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983693
Auto-Submit: David Munro <davidmunro@google.com>
Commit-Queue: Nic Hollingum <hollingum@google.com>
Reviewed-by: default avatarNic Hollingum <hollingum@google.com>
Cr-Commit-Position: refs/heads/master@{#728647}
parent e35c5d8a
...@@ -2524,6 +2524,12 @@ void CrostiniManager::OnLxdContainerCreated( ...@@ -2524,6 +2524,12 @@ void CrostiniManager::OnLxdContainerCreated(
break; break;
} }
if (result != CrostiniResult::SUCCESS) {
LOG(ERROR) << "Failed to create container. VM: " << signal.vm_name()
<< " container: " << signal.container_name()
<< " reason: " << signal.failure_reason();
}
InvokeAndErasePendingContainerCallbacks(&create_lxd_container_callbacks_, InvokeAndErasePendingContainerCallbacks(&create_lxd_container_callbacks_,
signal.vm_name(), signal.vm_name(),
signal.container_name(), result); signal.container_name(), result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment