]> granicus.if.org Git - icinga2/commitdiff
Add link to upgrade documentation to log message 5042/head
authorMarius Bergmann <marius@yeai.de>
Tue, 28 Feb 2017 16:02:10 +0000 (17:02 +0100)
committerMarius Bergmann <marius@yeai.de>
Tue, 28 Feb 2017 16:02:10 +0000 (17:02 +0100)
When there's a schema version mismatch after an upgrade, the following
message is logged:

```
Schema version 'x.y.z' does not match the required version 'x.y.z' (or
newer)! Please check the upgrade documentation.
```

After reading this log message, users have to search for the upgrade
section in the docs in order to perform the necessary steps.

I added the URL for the relevant sections to the log message, so users
can simply click/copy it.

lib/db_ido_mysql/idomysqlconnection.cpp
lib/db_ido_pgsql/idopgsqlconnection.cpp

index 017a82b99450238485aa4961efb9516527387915..690dfd6722397209e1418bd3e36d27e8640c1420 100644 (file)
@@ -303,7 +303,8 @@ void IdoMysqlConnection::Reconnect(void)
 
                Log(LogCritical, "IdoMysqlConnection")
                    << "Schema version '" << version << "' does not match the required version '"
-                   << IDO_COMPAT_SCHEMA_VERSION << "' (or newer)! Please check the upgrade documentation.";
+                   << IDO_COMPAT_SCHEMA_VERSION << "' (or newer)! Please check the upgrade documentation at "
+                   << "https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/upgrading-icinga-2#upgrading-mysql-db";
 
                Application::Exit(EXIT_FAILURE);
        }
index 4b37965d35871caf7dad53965e1472f5a101fe2a..84210b1f123d3dfe116c814a8bfb18220bae9a24 100644 (file)
@@ -264,7 +264,8 @@ void IdoPgsqlConnection::Reconnect(void)
 
                Log(LogCritical, "IdoPgsqlConnection")
                    << "Schema version '" << version << "' does not match the required version '"
-                   << IDO_COMPAT_SCHEMA_VERSION << "' (or newer)! Please check the upgrade documentation.";
+                   << IDO_COMPAT_SCHEMA_VERSION << "' (or newer)! Please check the upgrade documentation at "
+                   << "https://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/upgrading-icinga-2#upgrading-postgresql-db";
 
                Application::Exit(EXIT_FAILURE);
        }