mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-27 04:07:14 +00:00
Logs fix
This commit is contained in:
parent
e77c31b367
commit
20b2f89602
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ class LogsData {
|
|||
}
|
||||
|
||||
class Log {
|
||||
final bool answerDnssec;
|
||||
final bool? answerDnssec;
|
||||
final bool cached;
|
||||
final String client;
|
||||
final ClientInfo? clientInfo;
|
||||
|
@ -44,7 +44,7 @@ class Log {
|
|||
final Question question;
|
||||
final String reason;
|
||||
final List<Rule> rules;
|
||||
final String status;
|
||||
final String? status;
|
||||
final DateTime time;
|
||||
final String upstream;
|
||||
final List<Answer> answer;
|
||||
|
@ -53,7 +53,7 @@ class Log {
|
|||
final List<Answer>? originalAnswer;
|
||||
|
||||
Log({
|
||||
required this.answerDnssec,
|
||||
this.answerDnssec,
|
||||
required this.cached,
|
||||
required this.client,
|
||||
this.clientInfo,
|
||||
|
@ -62,7 +62,7 @@ class Log {
|
|||
required this.question,
|
||||
required this.reason,
|
||||
required this.rules,
|
||||
required this.status,
|
||||
this.status,
|
||||
required this.time,
|
||||
required this.upstream,
|
||||
required this.answer,
|
||||
|
|
|
@ -188,7 +188,7 @@ class LogDetailsScreen extends StatelessWidget {
|
|||
title: AppLocalizations.of(context)!.elapsedTime,
|
||||
subtitle: "${double.parse(log.elapsedMs).toStringAsFixed(2)} ms"
|
||||
),
|
||||
LogListTile(
|
||||
if (log.status != null) LogListTile(
|
||||
icon: Icons.system_update_alt_rounded,
|
||||
title: AppLocalizations.of(context)!.responseCode,
|
||||
subtitle: log.status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue