[xiph-cvs] cvs commit: ices/src metadata.c ices.c

Karl Heyes karl at xiph.org
Tue Feb 24 07:39:18 PST 2004



karl        04/02/24 10:39:17

  Modified:    src      metadata.c ices.c
  Log:
  add some log messages

Revision  Changes    Path
1.13      +5 -1      ices/src/metadata.c

Index: metadata.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/metadata.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- metadata.c	17 Jan 2004 04:24:10 -0000	1.12
+++ metadata.c	24 Feb 2004 15:39:14 -0000	1.13
@@ -1,7 +1,7 @@
 /* metadata.c
  * - Metadata manipulation
  *
- * $Id: metadata.c,v 1.12 2004/01/17 04:24:10 karl Exp $
+ * $Id: metadata.c,v 1.13 2004/02/24 15:39:14 karl Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -126,6 +126,7 @@
                 LOG_INFO0 ("metadata thread shutting down");
                 return NULL;
             }
+            LOG_DEBUG0("meta thread wakeup");
         }
 
         metadata_update_signalled = 0;
@@ -137,6 +138,7 @@
             continue;
         }
 
+        LOG_DEBUG1("reading metadata from \"%s\"", ices_config->metadata_filename);
         while(fgets(buf, 1024, file))
         {
             if(buf[0] == '\n')
@@ -164,6 +166,8 @@
             LOG_INFO0("Updating metadata");
             mod->handle_event(mod,EVENT_METADATAUPDATE,md);
         }
+        else
+            LOG_INFO0("No metadata has been read");
 
     }
 }

<p><p>1.17      +8 -2      ices/src/ices.c

Index: ices.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/ices.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ices.c	13 Jan 2004 16:35:27 -0000	1.16
+++ ices.c	24 Feb 2004 15:39:14 -0000	1.17
@@ -1,7 +1,7 @@
 /* ices.c
  * - Main startup, thread launching, and cleanup code.
  *
- * $Id: ices.c,v 1.16 2004/01/13 16:35:27 karl Exp $
+ * $Id: ices.c,v 1.17 2004/02/24 15:39:14 karl Exp $
  *
  * Copyright (c) 2001-2002 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -37,7 +37,7 @@
     if (argc != 2) 
     {
         fprintf(stderr, PACKAGE_STRING "\n"
-                "  (c) Copyright 2001-2003 The IceS Development Team <team at icecast.org>\n"
+                "  (c) Copyright 2001-2004 The IceS Development Team <team at icecast.org>\n"
                 "        Michael Smith <msmith at icecast.org>\n"
                 "        Karl Heyes    <karl at xiph.org>\n"
                 "        and others\n"
@@ -109,6 +109,12 @@
             fprintf (f, "%i", getpid());
             fclose (f);
         }
+        else
+        {
+            LOG_WARN1("pidfile \"%s\" cannot be written to", ices_config->pidfile);
+            xmlFree (ices_config->pidfile);
+            ices_config->pidfile = NULL;
+        }
     }
 
     /* Start the core streaming loop */

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list