System logs

This commit is contained in:
Hillel Coren 2021-03-29 23:15:16 +03:00
parent d7df2141d7
commit 210bff4c41
1 changed files with 2 additions and 4 deletions

View File

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