diff -ur motion-3.2.12/webcam.c motion-3.2.12-loghttpd/webcam.c
--- motion-3.2.12/webcam.c	2010-06-01 08:48:23.000000000 +0200
+++ motion-3.2.12-loghttpd/webcam.c	2011-06-21 13:26:54.000000000 +0200
@@ -58,12 +58,16 @@
         close(sl);
         return -1;
     }
+    else
+        motion_log(LOG_INFO, 0, "Bound to port %d for HTTP%s", port, local?" (loopback interface only)":"");
 
     if (listen(sl, DEF_MAXWEBQUEUE) == -1) {
         motion_log(LOG_ERR, 1, "listen()");
         close(sl);
         return -1;
     }
+    else
+        motion_log(LOG_INFO, 0, "Listening on port %d", port);
 
     return sl;
 }
@@ -75,10 +79,13 @@
     unsigned long i;
     struct sockaddr_in sin;
     socklen_t addrlen = sizeof(struct sockaddr_in);
+    char buf[30];
 
     if ((sc = accept(sl, (struct sockaddr *)&sin, &addrlen)) >= 0) {
         i = 1;
         ioctl(sc, FIONBIO, &i);
+        strncpy(buf, inet_ntoa(sin.sin_addr), sizeof(buf));
+        motion_log(LOG_INFO, 0, "Accepted HTTP connection from %s", buf);
         return sc;
     }
     
