Commit 3493be3
committed
[FAB-3431] Always display error callstack in logs
This CR removes the dependency on core.yaml for setting the display
of the callstack, resulting in all calls to Error() appending the
callstack (if available). This ensures the logs will always contain
the callstack. It also modifies the Message() function to only display
the error message (without callstack) for cases where just the message
message is desired. Finally, it refactors the unit tests to avoid the
previously large amount of duplicated code between test cases.
Change-Id: I379a3258fd2b357f2b5504896ff8f2ad4d5e7788
Signed-off-by: Will Lahti <wtlahti@us.ibm.com>1 parent 5f91834 commit 3493be3
File tree
7 files changed
+115
-349
lines changed- common
- errors
- flogging
- peer
- clilogging
- common
- node
- sampleconfig
7 files changed
+115
-349
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
| |||
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
0 commit comments