diff --git a/samples/vboxwrapper/vbox_mscom_impl.cpp b/samples/vboxwrapper/vbox_mscom_impl.cpp index 9a95a456d6d..7976949dd48 100644 --- a/samples/vboxwrapper/vbox_mscom_impl.cpp +++ b/samples/vboxwrapper/vbox_mscom_impl.cpp @@ -1344,9 +1344,7 @@ int VBOX_VM::poll(bool log_state) { // Grab a snapshot of the latest log file. Avoids multiple queries across several // functions. // - if (online) { - get_vm_log(vm_log); - } + get_vm_log(vm_log); // // Dump any new VM Guest Log entries diff --git a/samples/vboxwrapper/vbox_vboxmanage.cpp b/samples/vboxwrapper/vbox_vboxmanage.cpp index 6382a5323d2..5bf60312f84 100644 --- a/samples/vboxwrapper/vbox_vboxmanage.cpp +++ b/samples/vboxwrapper/vbox_vboxmanage.cpp @@ -984,9 +984,7 @@ int VBOX_VM::poll(bool log_state) { // Grab a snapshot of the latest log file. Avoids multiple queries across several // functions. // - if (online) { - get_vm_log(vm_log); - } + get_vm_log(vm_log); // // Dump any new VM Guest Log entries