From 1c01e44679dabdee022ab63b1fa57a020be9e109 Mon Sep 17 00:00:00 2001 From: AngelCarpintero Date: Wed, 4 Jul 2007 04:46:22 +0000 Subject: [PATCH] Improve message log for enabling stream server --- motion.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/motion.c b/motion.c index 2e2f7736..30409ece 100644 --- a/motion.c +++ b/motion.c @@ -630,11 +630,10 @@ static void motion_init(struct context *cnt) /* Initialize webcam server if webcam port is specified to not 0 */ if (cnt->conf.webcam_port) { if ( webcam_init(cnt) == -1 ) { - motion_log(LOG_ERR, 1, "Problem enabling stream server"); + motion_log(LOG_ERR, 1, "Problem enabling stream server in port %d", cnt->conf.webcam_port); cnt->finish = 1; cnt->makemovie = 0; - } - motion_log(LOG_DEBUG, 0, "Started stream webcam server in port %d", cnt->conf.webcam_port); + }else motion_log(LOG_DEBUG, 0, "Started stream webcam server in port %d", cnt->conf.webcam_port); } /* Prevent first few frames from triggering motion... */