From c7dab526ed9672c4cce2e3784297a100f32493a4 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Wed, 20 Jul 2016 07:35:42 -0400 Subject: Warn the user if the database ping fails Since subsequent database operations will fail, but in a rather unobvious way. diff --git a/mythtv/libs/libmyth/mythcontext.cpp b/mythtv/libs/libmyth/mythcontext.cpp index 7a934b8..f8e5952 100644 --- a/mythtv/libs/libmyth/mythcontext.cpp +++ b/mythtv/libs/libmyth/mythcontext.cpp @@ -696,6 +696,7 @@ QString MythContextPrivate::TestDBconnection(void) if (doPing && !ping(host, 3)) // Fail after trying for 3 seconds { + LOG(VB_GENERAL, LOG_WARN, QString("Pinging to %1 failed, database will be unavailable").arg(host)); SilenceDBerrors(); err = QObject::tr( "Cannot find (ping) database host %1 on the network",