System logs
This commit is contained in:
parent
d7df2141d7
commit
210bff4c41
|
|
@ -41,8 +41,7 @@ class _SystemLogViewerState extends State<SystemLogViewer> {
|
||||||
final client = state.clientState.get(systemLog.clientId);
|
final client = state.clientState.get(systemLog.clientId);
|
||||||
return ExpansionPanel(
|
return ExpansionPanel(
|
||||||
headerBuilder: (BuildContext context, bool isExpanded) {
|
headerBuilder: (BuildContext context, bool isExpanded) {
|
||||||
print(
|
print('## LOG: ${systemLog.log}');
|
||||||
'## LOG - categoryId: ${systemLog.categoryId}, category: ${systemLog.category}, eventId: ${systemLog.eventId}, event: ${systemLog.event}');
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: Icon(
|
leading: Icon(
|
||||||
systemLog.categoryId == SystemLogEntity.CATEGORY_EMAIL
|
systemLog.categoryId == SystemLogEntity.CATEGORY_EMAIL
|
||||||
|
|
@ -73,8 +72,7 @@ class _SystemLogViewerState extends State<SystemLogViewer> {
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
child:
|
child: JsonViewerWidget(jsonDecode(systemLog.log)),
|
||||||
JsonViewerWidget(jsonDecode(systemLog.log)['response']),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue