Minor cleanups

This commit is contained in:
2026-04-08 03:47:28 -04:00
parent 73f84c1681
commit 50790280bb
3 changed files with 5 additions and 7 deletions

View File

@@ -4,6 +4,7 @@
#include "UObject/StrongObjectPtr.h"
#include "AssetRegistry/AssetRegistryModule.h"
#include "AssetRegistry/IAssetRegistry.h"
#include "Misc/OutputDeviceRedirector.h"
#include "Serialization/JsonReader.h"
#include "Serialization/JsonSerializer.h"
#include "SocketSubsystem.h"
@@ -57,7 +58,7 @@ void UWingServer::Initialize(FSubsystemCollectionBase& Collection)
BuildWingHandlerRegistry();
ModulesChangedHandle = FModuleManager::Get().OnModulesChanged().AddUObject(this, &UWingServer::OnModulesChanged);
LogCapture.bEnabled = false;
LogCapture.Install();
GLog->AddOutputDevice(&LogCapture);
bRunning = true;
UE_LOG(LogTemp, Display, TEXT("UEWingman: MCP server listening on tcp://localhost:%d"), Port);
}
@@ -113,7 +114,7 @@ void UWingServer::Deinitialize()
ListenSocket = nullptr;
}
LogCapture.Uninstall();
GLog->RemoveOutputDevice(&LogCapture);
bRunning = false;
bShuttingDown = false;
GWingServer = nullptr;