Changes display format

* Changes informational details from ShowSQL to ShowStatus to keep the CI from failing.
Thanks to @Lemongrass3110!
This commit is contained in:
Aleos 2020-05-29 12:24:05 -04:00 committed by GitHub
parent ba5109189b
commit 6f163887d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1105,9 +1105,9 @@ void Sql_UpgradesChecker(Sql *sql_handle, e_sql_database schema) {
if (!(schema & SQLDB_LOG) && !skipped_updates.empty()) {
size_t count = skipped_updates.size();
ShowSQL("Detected %zu skipped " CL_WHITE "SQL update%s" CL_RESET "\n", count, count > 1 ? "s" : "");
ShowStatus("Detected %zu skipped " CL_WHITE "SQL update%s" CL_RESET "\n", count, count > 1 ? "s" : "");
for (const auto &skipIt : skipped_updates)
ShowSQL("-- '" CL_WHITE "Update %d" CL_RESET "' has been skipped.\n", skipIt);
ShowStatus("-- '" CL_WHITE "Update %d" CL_RESET "' has been skipped.\n", skipIt);
}
if (!new_updates.empty()) {
@ -1146,9 +1146,9 @@ void Sql_UpgradesChecker(Sql *sql_handle, e_sql_database schema) {
output << YAML::Key << "Body";
output << YAML::BeginSeq;
ShowSQL("Detected %zu new " CL_WHITE "SQL update%s" CL_RESET "\n", count, count > 1 ? "s" : "");
ShowStatus("Detected %zu new " CL_WHITE "SQL update%s" CL_RESET "\n", count, count > 1 ? "s" : "");
for (const auto &newIt : new_updates) {
ShowSQL("-- '" CL_WHITE "Update %d" CL_RESET "' has been applied.\n", newIt);
ShowStatus("-- '" CL_WHITE "Update %d" CL_RESET "' has been applied.\n", newIt);
time_t now = time(nullptr);