|
Proper loglevels: cmd-line option --loglevel=NONE/ERROR/WARN/PROGRESS/INFO/DEBUG
Allow the user to specify which messages (s)he wants to see on stderr:
The lilypond code basically stays the same, I only added a loglevel
global variable, which is used in the warning/error*/progress*/success
functions (ly:warning, ly:error, etc. in Scheme). If the proper level
is not set for a message, it is not printed.
There are only two larger changes:
-) Global var be_verbose_global replaced by loglevel (much finer-grained)
-) New functions (full)debug_output, which replaces code like:
if (be_verbose_global) {
progress_indication (...)
}
All changes were done to warn.cc and to the member of the Input class
(apparently, we have two parallel error-reporting "frameworks" in
lilypond...).
Note for all functions in warn.cc (not for the members of Input):
The debug_output function (and progress_indication and message) have
an optional argument to specify whether the output of the message
should always start on a new line or continue the previous output.
Documentation for this new feature is still missing (both in the AU
as well as in the CG).
Total comments: 28
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+492 lines, -280 lines) |
Patch |
 |
M |
flower/include/warn.hh
|
View
|
1
2
|
1 chunk |
+38 lines, -7 lines |
1 comment
|
Download
|
 |
M |
flower/warn.cc
|
View
|
1
2
|
1 chunk |
+125 lines, -25 lines |
3 comments
|
Download
|
 |
A |
input/regression/loglevels.ly
|
View
|
1
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/all-font-metrics.cc
|
View
|
1
|
3 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
lily/font-config.cc
|
View
|
1
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
lily/font-config-scheme.cc
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
lily/general-scheme.cc
|
View
|
1
2
|
3 chunks |
+7 lines, -84 lines |
0 comments
|
Download
|
 |
M |
lily/global-context-scheme.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
lily/guile-init.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lily/includable-lexer.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -16 lines |
0 comments
|
Download
|
 |
M |
lily/include/input.hh
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lily/include/main.hh
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
lily/input.cc
|
View
|
1
2
|
1 chunk |
+29 lines, -15 lines |
1 comment
|
Download
|
 |
M |
lily/lexer.ll
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
lily/lily-guile.cc
|
View
|
1
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
lily/main.cc
|
View
|
1
2
|
6 chunks |
+20 lines, -9 lines |
1 comment
|
Download
|
 |
M |
lily/paper-score.cc
|
View
|
1
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
lily/performance.cc
|
View
|
1
|
1 chunk |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
lily/pfb-scheme.cc
|
View
|
1
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
lily/program-option-scheme.cc
|
View
|
1
|
1 chunk |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lily/relocate.cc
|
View
|
1
|
9 chunks |
+18 lines, -25 lines |
0 comments
|
Download
|
 |
M |
lily/system.cc
|
View
|
1
|
3 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
lily/ttf.cc
|
View
|
1
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
A |
lily/warn-scheme.cc
|
View
|
1
2
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
M |
scm/backend-library.scm
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
scm/define-note-names.scm
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
scm/lily.scm
|
View
|
1
2
|
3 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
scm/lily-library.scm
|
View
|
1
2
|
1 chunk |
+6 lines, -11 lines |
0 comments
|
Download
|
Total messages: 17
|