diff --git a/src/Views/LogView/LogCell.vala b/src/Views/LogView/LogCell.vala index a01857048..f2394cd85 100644 --- a/src/Views/LogView/LogCell.vala +++ b/src/Views/LogView/LogCell.vala @@ -6,8 +6,7 @@ public class Monitor.LogCell : Granite.Bin { public enum CellType { ORIGIN, - MESSAGE, - PRIORITY + MESSAGE } public CellType cell_type { get; construct; } diff --git a/src/Views/LogView/SystemdLogModel.vala b/src/Views/LogView/SystemdLogModel.vala index 9e5e6fbea..f0b8b2fa8 100644 --- a/src/Views/LogView/SystemdLogModel.vala +++ b/src/Views/LogView/SystemdLogModel.vala @@ -163,7 +163,7 @@ public class Monitor.SystemdLogModel : GLib.Object, GLib.ListModel, Gtk.SectionM var dt = new DateTime.from_unix_utc ((int64) (time / TimeSpan.SECOND)); - var entry = new SystemdLogEntry (origin, message, dt, (Systemd.Journal.Priority) priority.to_int ()); + var entry = new SystemdLogEntry (origin, message, dt, (Systemd.Journal.Priority) int.parse (priority)); // Filter if we're searching. We drop them and don't add them and use a filter model // because when searching for e.g. a non existent term this would fill up memory *quick*