mirror of https://github.com/jetkvm/kvm.git
Updates: add logging on error, revert Makefile lint targets
This commit is contained in:
parent
0514a70913
commit
0e63e6d5ed
6
Makefile
6
Makefile
|
|
@ -205,14 +205,12 @@ lint-go-fix: build_audio_deps
|
||||||
# Run UI linting locally (mirrors GitHub workflow ui-lint.yml)
|
# Run UI linting locally (mirrors GitHub workflow ui-lint.yml)
|
||||||
lint-ui:
|
lint-ui:
|
||||||
@echo "Running UI lint..."
|
@echo "Running UI lint..."
|
||||||
@cd ui && npm ci
|
@cd ui && npm ci && npm run lint
|
||||||
@cd ui && npm run lint
|
|
||||||
|
|
||||||
# Run UI linting with auto-fix
|
# Run UI linting with auto-fix
|
||||||
lint-ui-fix:
|
lint-ui-fix:
|
||||||
@echo "Running UI lint with auto-fix..."
|
@echo "Running UI lint with auto-fix..."
|
||||||
@cd ui && npm ci
|
@cd ui && npm ci && npm run lint:fix
|
||||||
@cd ui && npm run lint:fix
|
|
||||||
|
|
||||||
# Legacy alias for UI linting (for backward compatibility)
|
# Legacy alias for UI linting (for backward compatibility)
|
||||||
ui-lint: lint-ui
|
ui-lint: lint-ui
|
||||||
|
|
|
||||||
1
audio.go
1
audio.go
|
|
@ -253,6 +253,7 @@ func handleInputTrackForSession(track *webrtc.TrackRemote) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := (*source).WriteMessage(0, opusData); err != nil {
|
if err := (*source).WriteMessage(0, opusData); err != nil {
|
||||||
|
audioLogger.Warn().Err(err).Msg("failed to write audio message")
|
||||||
(*source).Disconnect()
|
(*source).Disconnect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue