src/eric7/eric7_ide.py

branch
eric7
changeset 10760
f702f6781b05
parent 10716
11cdcc824469
child 10789
d3fa6a6b919e
--- a/src/eric7/eric7_ide.py	Sat Jun 08 19:11:03 2024 +0200
+++ b/src/eric7/eric7_ide.py	Sun Jun 09 16:49:06 2024 +0200
@@ -200,7 +200,7 @@
     logging.basicConfig(
         filename=os.path.join(Globals.getConfigDir(), "eric7_debug.txt"),
         filemode="w",
-        format="[%(asctime)s] %(levelname)s - %(message)s",
+        format="[%(asctime)s] %(levelname)s: %(name)s:%(lineno)d - %(message)s",
         level=logging.DEBUG,
     )
 
@@ -357,7 +357,7 @@
 
     app = EricApplication(args)
 
-    logging.debug("Importing Preferences")
+    logging.getLogger(__name__).debug("Importing Preferences")
     from eric7 import Preferences  # __IGNORE_WARNING_I101__
 
     if Preferences.getUI("SingleApplicationMode"):
@@ -406,6 +406,10 @@
     initSSL()
 
     splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting..."))
+    logging.getLogger(__name__).debug(
+        QCoreApplication.translate("eric7_ide", "Starting...")
+    )
+
     # We can only import these after creating the EricApplication because they
     # make Qt calls that need the EricApplication to exist.
     from eric7.UI.UserInterface import UserInterface  # __IGNORE_WARNING_I101__
@@ -413,6 +417,9 @@
     splash.showMessage(
         QCoreApplication.translate("eric7_ide", "Generating Main Window...")
     )
+    logging.getLogger(__name__).debug(
+        QCoreApplication.translate("eric7_ide", "Generating Main Window...")
+    )
     mainWindow = UserInterface(
         app,
         loc,
@@ -443,7 +450,7 @@
     # start the event loop
     inMainLoop = True
     res = app.exec()
-    logging.debug("Shutting down, result %d", res)
+    logging.getLogger(__name__).debug("Shutting down, result %d", res)
     logging.shutdown()
     sys.exit(res)
 

eric ide

mercurial