File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use Mojo::Util 'trim';
10
10
use Config::IniFiles;
11
11
use Time::Seconds;
12
12
use OpenQA::Config;
13
- use OpenQA::Log ' setup_log' ;
13
+ use OpenQA::Log qw( setup_log log_info ) ;
14
14
use OpenQA::Utils ' is_host_local' ;
15
15
use Net::Domain ' hostfqdn' ;
16
16
@@ -23,7 +23,8 @@ use constant VNCPORT_OFFSET => $ENV{VNCPORT_OFFSET} // 90;
23
23
sub new ($class , $instance_number = undef , $cli_options = {}) {
24
24
my $config_paths = lookup_config_files(undef , ' workers.ini' , 1);
25
25
my $cfg = parse_config_files($config_paths );
26
- my @parse_errors = @$config_paths ? (@Config::IniFiles::errors ) : (' No config file found.' );
26
+ my @parse_errors = @$config_paths ? (@Config::IniFiles::errors ) : ();
27
+ log_info ' workers.ini not found, using default settings' unless @$config_paths ;
27
28
28
29
# read settings from config
29
30
my %global_settings ;
You can’t perform that action at this time.
0 commit comments