Subversion Repositories camp_sysinfo_client_3

Rev

Rev 138 | Rev 142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 141
Line 300... Line 300...
300
#
300
#
301
#######################################################
301
#######################################################
302
 
302
 
303
sub loadConfigurationFile {   
303
sub loadConfigurationFile {   
304
   my ( $fileName, @searchPath ) = @_;
304
   my ( $fileName, @searchPath ) = @_;
305
   &logIt( 2, "Looking for config file $filename in " . join( ', ', @searchPath ) );
305
   &logIt( 2, "Looking for config file $fileName in " . join( ', ', @searchPath ) );
306
   my $confFile;
306
   my $confFile;
307
   if ( $confFile = &findFile( $fileName, \@searchPath ) ) {
307
   if ( $confFile = &findFile( $fileName, \@searchPath ) ) {
308
      &logIt( 3, "Opening configuration from $confFile" );
308
      &logIt( 3, "Opening configuration from $confFile" );
309
      my $yaml = YAML::Tiny->read( $confFile );
309
      my $yaml = YAML::Tiny->read( $confFile );
310
      &logIt( 4, "Configuration file contents\n$yaml" );
310
      &logIt( 4, "Configuration file contents\n$yaml" );