From 164c0b25eec9d2a9073b40d5c41992262f7b8bc0 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Thu, 5 Sep 2019 20:08:07 +0200 Subject: [PATCH] debugging for dirty settings. --- lib/src/kdbx_object.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/kdbx_object.dart b/lib/src/kdbx_object.dart index bd6a3ab..ae07c14 100644 --- a/lib/src/kdbx_object.dart +++ b/lib/src/kdbx_object.dart @@ -5,11 +5,15 @@ import 'dart:typed_data'; import 'package:kdbx/src/kdbx_format.dart'; import 'package:kdbx/src/kdbx_times.dart'; import 'package:kdbx/src/kdbx_xml.dart'; +import 'package:logging/logging.dart'; import 'package:meta/meta.dart'; import 'package:uuid/uuid.dart'; import 'package:uuid/uuid_util.dart'; import 'package:xml/xml.dart'; +final _logger = Logger('kdbx.kdbx_object'); + + class ChangeEvent { ChangeEvent({this.object, this.isDirty}); @@ -25,6 +29,7 @@ mixin Changeable { bool _isDirty = false; set isDirty(bool dirty) { + _logger.finest('changing dirty (old:$_isDirty) $dirty'); _isDirty = dirty; _controller.add(ChangeEvent(object: this as T, isDirty: dirty)); }