[geary/wip/logging-improvements: 1/3] Ensure Geary.Logging.Record handles null domains correctly



commit 1a42bab56adb1f6bdc08cbe940e127b987d84740
Author: Michael Gratton <mike vee net>
Date:   Thu Jun 27 21:07:21 2019 +1000

    Ensure Geary.Logging.Record handles null domains correctly

 src/engine/api/geary-logging.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/api/geary-logging.vala b/src/engine/api/geary-logging.vala
index 652b7005..a8b6c6c7 100644
--- a/src/engine/api/geary-logging.vala
+++ b/src/engine/api/geary-logging.vala
@@ -59,7 +59,7 @@ public class Record {
 
 
     /** Returns the GLib domain of the log message. */
-    public string domain { get; private set; }
+    public string? domain { get; private set; }
 
     /** Returns the next log record in the buffer, if any. */
     public Record? next { get; internal set; default = null; }
@@ -70,7 +70,7 @@ public class Record {
     private string message;
 
 
-    internal Record(string domain,
+    internal Record(string? domain,
                     LogLevelFlags flags,
                     int64 timestamp,
                     double elapsed,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]