From: Santiago Vila <sanvila@debian.org>
Subject: Log startup messages using LOG_INFO instead of LOG_ALERT
Bug-Debian: https://bugs.debian.org/1051476

--- a/cnf.c
+++ b/cnf.c
@@ -123,6 +123,15 @@
 #endif
 }
 
+void InfoLog(config *conf,char *msg)
+{
+#ifdef HAVE_SYSLOG_H
+openlog("gld",0,conf->facility);
+syslog(LOG_INFO,"%s",msg);
+closelog();
+#endif
+}
+
 int ReadClients(config *conf,char *str)
 {
 char *ptr,*x,*y;
--- a/gld.h
+++ b/gld.h
@@ -84,6 +84,7 @@
 int GreyList(char *ip,char *sender,char *recipient,config *conf);
 void Log(config *conf,char * recipient,char *sender,char *ip,int white);
 void ErrorLog(config *conf,char *msg);
+void InfoLog(config *conf,char *msg);
 void Reload(int s);
 void ShowBaseInfo(void);
 void Quote(char *str);
--- a/server.c
+++ b/server.c
@@ -154,7 +154,7 @@
 
 if(conf.debug==1) printf("bind to port %d succesful\n",conf.port);
 
-if(conf.syslog==1) ErrorLog(&conf,"gld started, up and running");
+if(conf.syslog==1) InfoLog(&conf,"gld started, up and running");
 if(conf.debug==0) MyDaemon(0,0);
 if(conf.debug==1) printf("Waiting for incoming connexions\n");
 
