Stream live server logs over SSE
This commit is contained in:
@@ -39,8 +39,8 @@ func (svc *CoreService) UpdateServerRuntimeBindingForSession(sessionID, serverIn
|
||||
if existingErr != nil && !errors.Is(existingErr, repo.ErrNotFound) {
|
||||
return domain.RuntimeBindingView{}, existingErr
|
||||
}
|
||||
if (instance.State == domain.ServerInstanceStateInstalling || instance.State == domain.ServerInstanceStateRunning) && existingErr == nil || instance.State == domain.ServerInstanceStateDeleted {
|
||||
return domain.RuntimeBindingView{}, validationError("runtime binding cannot be changed while the server is active")
|
||||
if instance.State == domain.ServerInstanceStateDeleted {
|
||||
return domain.RuntimeBindingView{}, validationError("runtime binding cannot be changed after the server is deleted")
|
||||
}
|
||||
plugin, err := svc.store.GamePlugins().Get(instance.PluginID)
|
||||
if err != nil {
|
||||
@@ -124,7 +124,7 @@ func runtimeBindingKeys(profiles domain.GamePluginRuntimeProfiles, profile domai
|
||||
add(probe.TargetKey, probe.Required)
|
||||
}
|
||||
for _, source := range profiles.LogSources {
|
||||
add(source.TargetKey, source.TargetKey != "")
|
||||
add(source.TargetKey, false)
|
||||
}
|
||||
for _, plan := range profiles.InstallPlans {
|
||||
for _, step := range plan.Steps {
|
||||
|
||||
Reference in New Issue
Block a user