From 6d7a5d396980e4bd453c8edee7e2d1d9dd8636f3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Feb 2014 00:46:54 +0000 Subject: [PATCH] Don't show "deleted stale lock file" message by default. The user typically can't do anything about this error anyhow, so don't show it by default. Still do show it when running in the verbose mode as this might add diagnosing the problem when something goes unexpectedly wrong. Closes #15944. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/snglinst.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/unix/snglinst.cpp b/src/unix/snglinst.cpp index f8f1c3b4e0..0c8d4275ef 100644 --- a/src/unix/snglinst.cpp +++ b/src/unix/snglinst.cpp @@ -292,7 +292,13 @@ bool wxSingleInstanceCheckerImpl::Create(const wxString& name) } else { - wxLogMessage(_("Deleted stale lock file '%s'."), + // This may be important to know if something goes + // mysteriously wrong, but as the user can't really do + // anything about here (the most typical reason for this + // message is that the previous instance of the program + // crashed), don't show it by default, i.e. unless the + // program is running with --verbose command line option. + wxLogInfo(_("Deleted stale lock file '%s'."), name.c_str()); // retry now