mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
normalize logs.
This commit is contained in:
parent
dd8867615e
commit
ff97242bac
@ -15,7 +15,7 @@ func (manager *CaptureManagerCtx) StartBroadcastPipeline() {
|
||||
Str("audio_device", manager.config.Device).
|
||||
Str("video_display", manager.config.Display).
|
||||
Str("broadcast_pipeline", manager.config.BroadcastPipeline).
|
||||
Msgf("Creating broadcast pipeline...")
|
||||
Msgf("creating broadcast pipeline")
|
||||
|
||||
manager.broadcast, err = gst.CreateRTMPPipeline(
|
||||
manager.config.Device,
|
||||
@ -29,7 +29,7 @@ func (manager *CaptureManagerCtx) StartBroadcastPipeline() {
|
||||
}
|
||||
|
||||
manager.broadcast.Play()
|
||||
manager.logger.Info().Msgf("Starting broadcast pipeline...")
|
||||
manager.logger.Info().Msgf("starting broadcast pipeline")
|
||||
}
|
||||
|
||||
func (manager *CaptureManagerCtx) StopBroadcastPipeline() {
|
||||
@ -38,7 +38,7 @@ func (manager *CaptureManagerCtx) StopBroadcastPipeline() {
|
||||
}
|
||||
|
||||
manager.broadcast.Stop()
|
||||
manager.logger.Info().Msgf("Stopping broadcast pipeline...")
|
||||
manager.logger.Info().Msgf("stopping broadcast pipeline")
|
||||
manager.broadcast = nil
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ func (manager *CaptureManagerCtx) createVideoPipeline() {
|
||||
|
||||
manager.logger.Info().
|
||||
Str("src", manager.video.Src).
|
||||
Msgf("starting video pipeline...")
|
||||
Msgf("starting video pipeline")
|
||||
|
||||
manager.video.Start()
|
||||
|
||||
|
@ -41,7 +41,7 @@ func (manager *DesktopManagerCtx) Start() {
|
||||
|
||||
manager.logger.Info().
|
||||
Str("screen_size", fmt.Sprintf("%dx%d@%d", manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate)).
|
||||
Msgf("Setting initial screen size...")
|
||||
Msgf("setting initial screen size")
|
||||
|
||||
if err := xorg.ChangeScreenSize(manager.config.ScreenWidth, manager.config.ScreenHeight, manager.config.ScreenRate); err != nil {
|
||||
manager.logger.Warn().Err(err).Msg("unable to set initial screen size")
|
||||
@ -77,7 +77,7 @@ func (manager *DesktopManagerCtx) OnAfterScreenSizeChange(listener func()) {
|
||||
}
|
||||
|
||||
func (manager *DesktopManagerCtx) Shutdown() error {
|
||||
manager.logger.Info().Msgf("remote shutting down")
|
||||
manager.logger.Info().Msgf("desktop shutting down")
|
||||
|
||||
manager.cleanup.Stop()
|
||||
manager.shutdown <- true
|
||||
|
Loading…
Reference in New Issue
Block a user