mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
* feat(cloud): Use Websocket signaling in cloud mode * refactor: Enhance WebRTC signaling and connection handling * refactor: Improve WebRTC connection management and logging in KvmIdRoute * refactor: Update PeerConnectionDisconnectedOverlay to use Card component for better UI structure * refactor: Standardize metric naming and improve websocket logging * refactor: Rename WebRTC signaling functions and update deployment script for debug version * fix: Handle error when writing new ICE candidate to WebRTC signaling channel * refactor: Rename signaling handler function for clarity * refactor: Remove old http local http endpoint * refactor: Improve metric help text and standardize comparison operator in KvmIdRoute * chore(websocket): use MetricVec instead of Metric to store metrics * fix conflicts * fix: use wss when the page is served over https * feat: Add app version header and update WebRTC signaling endpoint * fix: Handle error when writing device metadata to WebRTC signaling channel --------- Co-authored-by: Siyuan Miao <i@xswan.net>
10 lines
363 B
Go
10 lines
363 B
Go
package kvm
|
|
|
|
import "github.com/pion/logging"
|
|
|
|
// we use logging framework from pion
|
|
// ref: https://github.com/pion/webrtc/wiki/Debugging-WebRTC
|
|
var logger = logging.NewDefaultLoggerFactory().NewLogger("jetkvm")
|
|
var cloudLogger = logging.NewDefaultLoggerFactory().NewLogger("cloud")
|
|
var websocketLogger = logging.NewDefaultLoggerFactory().NewLogger("websocket")
|