[geary/wip/structured-logging: 5/7] Fix incorrect log field key being used for Loggable objects
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/structured-logging: 5/7] Fix incorrect log field key being used for Loggable objects
- Date: Sun, 30 Jun 2019 06:16:00 +0000 (UTC)
commit ff3c4b0cd7cab6c3654a8a0e8d109490256d207d
Author: Michael Gratton <mike vee net>
Date: Sun Jun 30 10:11:31 2019 +1000
Fix incorrect log field key being used for Loggable objects
src/engine/util/util-loggable.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/util/util-loggable.vala b/src/engine/util/util-loggable.vala
index 6fba32f9..b7bdf327 100644
--- a/src/engine/util/util-loggable.vala
+++ b/src/engine/util/util-loggable.vala
@@ -87,8 +87,8 @@ public interface Geary.Loggable : GLib.Object {
this.count++;
}
- public inline void append_instance<T>(T value) {
- this.append(typeof(T).name(), value);
+ public inline void append_loggable(Loggable value) {
+ this.append(value.get_type().name(), value);
}
public GLib.LogField[] to_array() {
@@ -177,7 +177,7 @@ public interface Geary.Loggable : GLib.Object {
Context context = Context(Logging.DOMAIN, flags, levels, fmt, args);
Loggable? decorated = this;
while (decorated != null) {
- context.append_instance(decorated);
+ context.append_loggable(decorated);
decorated = decorated.loggable_parent;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]