From 66b3fabeefeb60d785fb2561e98d3ed49cfb2239 Mon Sep 17 00:00:00 2001 From: Carlos Esquerdo Bernat Date: Mon, 3 Aug 2020 01:35:08 +0200 Subject: [PATCH] log: avoid the deprecated .is_opened() method (#6039) --- vlib/log/log.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/log/log.v b/vlib/log/log.v index 4606f13ba9..8b9ea7c602 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -59,7 +59,7 @@ pub fn (mut l Log) set_output_label(label string) { } pub fn (mut l Log) set_output_path(output_file_path string) { - if l.ofile.is_opened() { + if l.ofile.is_opened { l.ofile.close() } l.output_to_file = true