File: 006-logging.patch

package info (click to toggle)
qosmic 1.6.0-4
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 3,204 kB
  • sloc: cpp: 22,303; xml: 31; makefile: 7
file content (79 lines) | stat: -rw-r--r-- 2,316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Description: Fix logging
 Enable build warning logs
 Enable run-time logging
 Log palette changes at info level
 Show full package version in the 'About' window
Author: Peter Blackman <peter@pblackman.plus.com>
Last-Update: 2020-01-14

Index: b/src/paletteeditor.cpp
===================================================================
--- a/src/paletteeditor.cpp
+++ b/src/paletteeditor.cpp
@@ -451,6 +451,8 @@
 void PaletteEditor::paletteIndexChangedAction(const QModelIndex& idx)
 {
 	if (!idx.isValid()) return;
+	logInfo("PaletteEditor::loadPalette : Row %d", idx.row());
+
 	loadPalette(idx.row());
 	setPaletteView();
 	emit paletteChanged();
@@ -500,7 +502,7 @@
 	{
 		if (hasUGR)
 		{
-			logFine("PaletteEditor::selectGradientAction : UGR %d", idx.row());
+			logInfo("PaletteEditor::selectGradientAction : UGR %d", idx.row());
 			setPalette(ugrList[idx.row()].pa);
 			emit paletteChanged();
 			emit undoStateSignal();
@@ -508,7 +510,7 @@
 		else
 		{
 			QFileInfo file = m_browseFileList.at(idx.row());
-			logFine("PaletteEditor::selectGradientAction : selecting %d", idx.row());
+			logInfo("PaletteEditor::selectGradientAction : selecting %d", idx.row());
 			if ((file.suffix() == "ggr" && loadGIMPGradient(file, p))
 			||  (file.suffix() == "cpt" && loadCPTGradient(file, p)))
 			{
Index: b/qosmic.pro
===================================================================
--- a/qosmic.pro
+++ b/qosmic.pro
@@ -53,7 +53,7 @@
 
 ################################################################################
 ## Build style flags.  Adding debug enables more verbose logging.
-CONFIG += release warn_off
+CONFIG += release warn_on
 #CONFIG += debug warn_on
 
 
@@ -67,7 +67,7 @@
 
 ################################################################################
 ## qosmic app version
-VERSION = 1.6.0
+VERSION = "$(DEB_VERSION) $(FLAM3_VERSION)"
 
 ################################################################################
 ## Check for correct package versions
@@ -89,6 +89,7 @@
 QT += widgets
 RESOURCES = qosmic.qrc
 INCLUDEPATH += src
+DEFINES += LOGGING
 
 ## packagers may define ROOT for install sandboxes
 #ROOT = /tmp
@@ -127,9 +128,7 @@
 }
 
 CONFIG(debug, debug|release) {
-	## enable more verbose logging
 	message(Building debug version)
-	DEFINES += LOGGING
 }
 
 FORMS += \