修改了日志等级

This commit is contained in:
2025-09-09 16:46:33 +08:00
parent 7fad87fff5
commit e92f5dac5d
5 changed files with 10 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ public class DataLoaderService : IDataLoaderService
var mqttServerDtos = await LoadAllMqttServersAsync();
// 加载所有日志
var nlogDtos = await LoadAllNlogsAsync();
var nlogDtos = await LoadAllNlogsAsync(100);
// 获取变量MQTT别名
var variableMqttAliases = await _repositoryManager.VariableMqttAliases.GetAllAsync();
@@ -191,8 +191,8 @@ public class DataLoaderService : IDataLoaderService
/// <summary>
/// 异步加载所有日志数据
/// </summary>
public async Task<List<NlogDto>> LoadAllNlogsAsync()
public async Task<List<NlogDto>> LoadAllNlogsAsync(int count)
{
return await _nlogAppService.GetAllLogsAsync();
return await _nlogAppService.GetLatestLogsAsync(count);
}
}