Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 66c5f4d5 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

LOG: Add some logs, pb on flush on exit because the messages outlive the...

LOG: Add some logs, pb on flush on exit because the messages outlive the logger (string_view problem)
parent e901daa4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!21Add clean logs support + dependent MR
...@@ -55,6 +55,7 @@ AboutWindow::LicenceLabel::LicenceLabel(QWidget *parent, const QString &url, ...@@ -55,6 +55,7 @@ AboutWindow::LicenceLabel::LicenceLabel(QWidget *parent, const QString &url,
const Qt::TextFormat format) const Qt::TextFormat format)
: QTextEdit(parent) : QTextEdit(parent)
{ {
VIVY_LOG_CTOR() << "Creating label for licence '" << url << '\'';
QFile content(url); QFile content(url);
if (!content.open(QIODevice::ReadOnly | QIODevice::Text)) if (!content.open(QIODevice::ReadOnly | QIODevice::Text))
throw std::runtime_error("Failed to open file that should be accessible"); throw std::runtime_error("Failed to open file that should be accessible");
...@@ -83,6 +84,7 @@ AboutWindow::AboutWindow(QWidget *parent) noexcept ...@@ -83,6 +84,7 @@ AboutWindow::AboutWindow(QWidget *parent) noexcept
: QMainWindow(parent, Qt::Dialog) : QMainWindow(parent, Qt::Dialog)
, panels(new QTabWidget) , panels(new QTabWidget)
{ {
VIVY_LOG_CTOR() << "Creating the 'Vivy - About' window";
setWindowIcon(QIcon(VIVY_ICON_APP)); setWindowIcon(QIcon(VIVY_ICON_APP));
setWindowTitle("Vivy - About"); setWindowTitle("Vivy - About");
......
...@@ -6,6 +6,7 @@ using namespace Vivy; ...@@ -6,6 +6,7 @@ using namespace Vivy;
VivyApplication::VivyApplication(int &argc, char **argv) VivyApplication::VivyApplication(int &argc, char **argv)
: QApplication(argc, argv) : QApplication(argc, argv)
{ {
VIVY_LOG_CTOR(VivyApplication) << "Construction is OK";
} }
void void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter