From 66c5f4d5193324d2f5859328f07fb462a2cd8576 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Wed, 1 Sep 2021 16:29:49 +0200
Subject: [PATCH] LOG: Add some logs, pb on flush on exit because the messages
 outlive the logger (string_view problem)

---
 src/UI/AboutWindow.cc  | 2 ++
 src/VivyApplication.cc | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/UI/AboutWindow.cc b/src/UI/AboutWindow.cc
index 420dae7b..432c7fbf 100644
--- a/src/UI/AboutWindow.cc
+++ b/src/UI/AboutWindow.cc
@@ -55,6 +55,7 @@ AboutWindow::LicenceLabel::LicenceLabel(QWidget *parent, const QString &url,
                                         const Qt::TextFormat format)
     : QTextEdit(parent)
 {
+    VIVY_LOG_CTOR() << "Creating label for licence '" << url << '\'';
     QFile content(url);
     if (!content.open(QIODevice::ReadOnly | QIODevice::Text))
         throw std::runtime_error("Failed to open file that should be accessible");
@@ -83,6 +84,7 @@ AboutWindow::AboutWindow(QWidget *parent) noexcept
     : QMainWindow(parent, Qt::Dialog)
     , panels(new QTabWidget)
 {
+    VIVY_LOG_CTOR() << "Creating the 'Vivy - About' window";
     setWindowIcon(QIcon(VIVY_ICON_APP));
     setWindowTitle("Vivy - About");
 
diff --git a/src/VivyApplication.cc b/src/VivyApplication.cc
index 2020a97b..6cac0f9f 100644
--- a/src/VivyApplication.cc
+++ b/src/VivyApplication.cc
@@ -6,6 +6,7 @@ using namespace Vivy;
 VivyApplication::VivyApplication(int &argc, char **argv)
     : QApplication(argc, argv)
 {
+    VIVY_LOG_CTOR(VivyApplication) << "Construction is OK";
 }
 
 void
-- 
GitLab