[geary] Fix Geary.Logging.Flag serialisation
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix Geary.Logging.Flag serialisation
- Date: Sun, 25 Aug 2019 06:45:40 +0000 (UTC)
commit 52f0817116675fbd5f53a6ebd0c5955431fbaf33
Author: Michael Gratton <mike vee net>
Date: Sun Aug 25 16:44:30 2019 +1000
Fix Geary.Logging.Flag serialisation
Add missing serialisation for CONVERSATION and PERIODIC, shorten all
serialised values to a recognisable abbreviation to reduce verbosity.
src/engine/api/geary-logging.vala | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/api/geary-logging.vala b/src/engine/api/geary-logging.vala
index 6fd0419e..faee162b 100644
--- a/src/engine/api/geary-logging.vala
+++ b/src/engine/api/geary-logging.vala
@@ -68,7 +68,19 @@ public enum Flag {
if (buf.len > 0) {
buf.append_c('|');
}
- buf.append("REPLAY");
+ buf.append("REP");
+ }
+ if (this.is_any_set(CONVERSATIONS)) {
+ if (buf.len > 0) {
+ buf.append_c('|');
+ }
+ buf.append("CNV");
+ }
+ if (this.is_any_set(PERIODIC)) {
+ if (buf.len > 0) {
+ buf.append_c('|');
+ }
+ buf.append("PER");
}
if (this.is_any_set(SQL)) {
if (buf.len > 0) {
@@ -80,13 +92,13 @@ public enum Flag {
if (buf.len > 0) {
buf.append_c('|');
}
- buf.append("NORM");
+ buf.append("NRM");
}
if (this.is_any_set(DESERIALIZER)) {
if (buf.len > 0) {
buf.append_c('|');
}
- buf.append("DESER");
+ buf.append("DES");
}
}
return buf.str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]