summary refs log tree commit diff
path: root/SystemdCtl.Client
diff options
context:
space:
mode:
Diffstat (limited to 'SystemdCtl.Client')
-rw-r--r--SystemdCtl.Client/Pages/ServiceManage.razor4
1 files changed, 2 insertions, 2 deletions
diff --git a/SystemdCtl.Client/Pages/ServiceManage.razor b/SystemdCtl.Client/Pages/ServiceManage.razor
index 9a32087..c622833 100644
--- a/SystemdCtl.Client/Pages/ServiceManage.razor
+++ b/SystemdCtl.Client/Pages/ServiceManage.razor
@@ -35,7 +35,7 @@
 

     private static bool IsClient => !Environment.CommandLine.Contains("/");

 

-    private List<string> LogLines { get; set; } = new();

+    private List<SystemdJournalLogItem> LogLines { get; set; } = new();

 

     protected override async Task OnInitializedAsync() {

         Console.WriteLine("OnInitializedAsync");

@@ -47,7 +47,7 @@
 

         LogLines.Clear();

         var Http = new StreamingHttpClient() { BaseAddress = new Uri(NavigationManager.BaseUri) };

-        var _items = Http.GetAsyncEnumerableFromJsonAsync<string>($"/api/unit/{ServiceName}/logs");

+        var _items = Http.GetAsyncEnumerableFromJsonAsync<SystemdJournalLogItem>($"/api/unit/{ServiceName}/logs");

         await foreach (var item in _items) {

             LogLines.Add(item);

             if (LogLines.Count > 100) LogLines.RemoveAt(0);