Skip to content

Commit

Permalink
Changed: Change some migration and OSP warnings to info
Browse files Browse the repository at this point in the history
Merge pull request #1770 from jhelmold/change_warnings_to_info_backport_1763
Backport of PR #1763
  • Loading branch information
timopollmeier committed Jan 12, 2022
2 parents 1846370 + 44c0cc9 commit 680b326
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gvmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ gvmd (int argc, char** argv)
g_info (" Migration succeeded.");
return EXIT_SUCCESS;
case 1:
g_warning ("%s: databases are already at the supported version",
g_info ("%s: databases are already at the supported version",
__func__);
return EXIT_SUCCESS;
case 2:
Expand Down
10 changes: 7 additions & 3 deletions src/manage_sql_nvts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1959,8 +1959,12 @@ osp_scanner_feed_version (const gchar *update_socket)
error = NULL;
if (osp_get_vts_version (connection, &scanner_feed_version, &error))
{
g_warning ("%s: failed to get scanner_feed_version. %s",
__func__, error ? : "");
if (error && strcmp (error, "OSPd OpenVAS is still starting") == 0)
g_info ("%s: failed to get scanner_feed_version. %s",
__func__, error);
else
g_warning ("%s: failed to get scanner_feed_version. %s",
__func__, error ? : "");
g_free (error);
osp_connection_close (connection);
return NULL;
Expand Down Expand Up @@ -2264,4 +2268,4 @@ manage_dump_vt_verification (GSList *log_config,
manage_option_cleanup ();

return 0;
}
}

0 comments on commit 680b326

Please sign in to comment.