Projekt

Allgemein

Profil

Aktionen

Bug #333

offen

Spaces in debug output make it difficult to transfer source code information

Von rhabacker vor etwa 7 Stunden hinzugefügt.

Status:
New
Priorität:
Normal
Kategorie:
Gwenhywfar
Beginn:
12.12.2025
Abgabedatum:
Betriebssystem:
FreeBSD, Linux, MacOSX, Windows, andere
AqBanking-Version:
6.8.2
Anwendung:
KMyMoney, aqbanking-cli
Version der Anwendung:
6.8.2/5.2

Beschreibung

The debug output of gwenhywfar displays file names and line numbers.

GWEN_LOGLEVEL=info aqbanking-cli help
6:2025/12/12 17-47-36:gwen(30753):i18n.c:  205: Real locale is [de_DE.UTF-8]
6:2025/12/12 17-47-36:gwen(30753):plugin.c:  586: Plugin type "dbio" registered
6:2025/12/12 17-47-36:gwen(30753):dbio.c:  107: Adding plugin path [/usr/lib64/gwenhywfar/plugins/79/dbio]
6:2025/12/12 17-47-36:gwen(30753):plugin.c:  586: Plugin type "configmgr" registered

However, there are spaces between them, which makes it difficult to select and reuse both together.

In contrast, grep outputs both without spaces.

cd ~/src
git clone https://git.aquamaniac.de/git/gwenhywfar
cd gwenhywfar
grep -rn DBG_DEBUG
plugins/dbio/xmldb/xmldb.c:220:      DBG_DEBUG(GWEN_LOGDOMAIN, "Empty value");
plugins/dbio/xmldb/xmldb.c:446:        DBG_DEBUG(GWEN_LOGDOMAIN, "Not storing pointer value");
plugins/dbio/csv/csv.c:30:/* disable DBG_DEBUG() and DBG_VERBOUS() */

For example, if you run this command in the “konsole” terminal on a Linux host, you can double-click on the file name or line number plugins/dbio/xmldb/xmldb.c:446 to select it, which can then be easily copied to the clipboard and opened in the editor e.g. kate plugins/dbio/xmldb/xmldb.c:446, which opens the file and places the cursor on the specified line.

The patch in the Git branch https://www.aquamaniac.de/rdm/projects/gwenhywfar/repository/gwenhywfar?utf8=%E2%9C%93&rev=rh-202512-logger-fixes produces output in the same format, which also simplifies selection for gwenhywfar/aqbanking.

6:2025/12/12 17-47-36:gwen(30753):i18n.c:205: Real locale is [de_DE.UTF-8]
6:2025/12/12 17-47-36:gwen(30753):plugin.c:586: Plugin type "dbio" registered
6:2025/12/12 17-47-36:gwen(30753):dbio.c:107: Adding plugin path [/usr/lib64/gwenhywfar/plugins/79/dbio]
6:2025/12/12 17-47-36:gwen(30753):plugin.c:586: Plugin type "configmgr" registered

Nichts anzuzeigen

Aktionen

Auch abrufbar als: Atom PDF