Updates: add logging on error, revert Makefile lint targets

This commit is contained in:
Alex P 2025-11-11 11:25:49 +02:00
parent 50c6d0d0b0
commit 12552e7700
2 changed files with 3 additions and 4 deletions

View File

@ -205,14 +205,12 @@ lint-go-fix: build_audio_deps
# Run UI linting locally (mirrors GitHub workflow ui-lint.yml)
lint-ui:
@echo "Running UI lint..."
@cd ui && npm ci
@cd ui && npm run lint
@cd ui && npm ci && npm run lint
# Run UI linting with auto-fix
lint-ui-fix:
@echo "Running UI lint with auto-fix..."
@cd ui && npm ci
@cd ui && npm run lint:fix
@cd ui && npm ci && npm run lint:fix
# Legacy alias for UI linting (for backward compatibility)
ui-lint: lint-ui

View File

@ -253,6 +253,7 @@ func handleInputTrackForSession(track *webrtc.TrackRemote) {
}
if err := (*source).WriteMessage(0, opusData); err != nil {
audioLogger.Warn().Err(err).Msg("failed to write audio message")
(*source).Disconnect()
}
}