Skip to content

Commit

Permalink
Decrease log level from warn to info for git clone reject
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Sep 27, 2024
1 parent 3b39dda commit acb12e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/OpenQA/Task/Git/Clone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ sub _git_clone ($app, $job, $ctx, $path, $url) {

my $origin_url = $git->get_origin_url;
if ($url ne $origin_url) {
$ctx->warn("Local checkout at $path has origin $origin_url but requesting to clone from $url");
$ctx->info("Local checkout at $path has origin $origin_url but requesting to clone from $url");
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion t/14-grutasks-git.t
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ my $mojo_port = Mojo::IOLoop::Server->generate_port;
my $webapi = OpenQA::Test::Utils::create_webapi($mojo_port, sub { });

# prevent writing to a log file to enable use of combined_like in the following tests
$t->app->log(Mojo::Log->new(level => 'warn'));
$t->app->log(Mojo::Log->new(level => 'info'));

subtest 'git clone' => sub {
my $openqa_git = Test::MockModule->new('OpenQA::Git');
Expand Down

0 comments on commit acb12e8

Please sign in to comment.