<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,8 @@
 #include &quot;revision.h&quot;
 #include &quot;list-objects.h&quot;
 
+#include &lt;syslog.h&gt;
+
 static const char upload_pack_usage[] = &quot;git-upload-pack [--strict] [--timeout=nn] &lt;dir&gt;&quot;;
 
 /* bits #0..7 in revision.h, #8..10 in commit.c */
@@ -98,18 +100,16 @@ static void show_edge(struct commit *commit)
 
 static void log_fetch(int fetch_full_pack)
 {
-	char git_dir[8193];
-	char date_stamp[300];
-	FILE *logfile;	
+	char buf[1024];
+	char git_dir[1024];
+	const char *fetch_type;
 	
 	getwd(git_dir);
-	datestamp(date_stamp, sizeof(date_stamp));
-	logfile = fopen(&quot;/tmp/git.log&quot;,&quot;a+&quot;); 
-	if(fetch_full_pack)
-		fprintf(logfile,&quot;%s: upload-pack clone %s\n&quot;, date_stamp, git_dir);
-	else
-		fprintf(logfile,&quot;%s: upload-pack fetch %s\n&quot;, date_stamp, git_dir);
-	fclose(logfile);
+	fetch_type = (fetch_full_pack) ? &quot;clone&quot; : &quot;fetch&quot;;
+	
+	openlog(&quot;git-daemon-fetch&quot;, 0, LOG_DAEMON);	
+	snprintf(buf, sizeof(buf), &quot;%s %s\n&quot;, fetch_type, git_dir);
+	syslog(LOG_INFO, buf);
 }
 
 static void create_pack_file(void)</diff>
      <filename>upload-pack.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fff45c91cbd6619881d1089168d489a105e157ae</id>
    </parent>
  </parents>
  <author>
    <name>Scott Chacon</name>
    <email>schacon@gmail.com</email>
  </author>
  <url>http://github.com/schacon/git-source/commit/8eeca4d163a4f3365841c8c3e922b7318302ffcf</url>
  <id>8eeca4d163a4f3365841c8c3e922b7318302ffcf</id>
  <committed-date>2008-04-02T09:53:45-07:00</committed-date>
  <authored-date>2008-04-02T09:53:45-07:00</authored-date>
  <message>changed logging from file to syslogd</message>
  <tree>9242b4adb0074831bc7d5784e56e1fdd2234c83e</tree>
  <committer>
    <name>Scott Chacon</name>
    <email>schacon@gmail.com</email>
  </committer>
</commit>
