Logging autoflush
This commit is contained in:
parent
a8aecad1cd
commit
a3ad26ed11
|
@ -1,4 +1,4 @@
|
|||
vn-vmware (1.0.16) stable; urgency=low
|
||||
vn-vmware (1.0.17) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ use File::Path;
|
|||
use Net::OpenSSH;
|
||||
use Sys::CPU;
|
||||
use Term::ANSIColor;
|
||||
use IO::Handle;
|
||||
use List::Util qw(min max);
|
||||
|
||||
use constant false => 0;
|
||||
|
@ -204,6 +205,7 @@ sub log_error {
|
|||
|
||||
unless ($show_logs) {
|
||||
open($log_fh, '>>', $config{log_file});
|
||||
$log_fh->autoflush(1);
|
||||
}
|
||||
|
||||
eval {
|
||||
|
|
Reference in New Issue