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 30, 2024
1 parent 3b39dda commit a784731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/OpenQA/Task/Git/Clone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ 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. Be aware that the requested URL will not be cloned. This is fine.🔥"
);
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 a784731

Please sign in to comment.