normalize logs.

This commit is contained in:
Miroslav Šedivý 2020-11-13 17:42:04 +01:00
parent dd8867615e
commit ff97242bac
3 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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()

View File

@ -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