Diff for /freem/src/log.c between versions 1.5 and 1.8

version 1.5, 2025/04/01 20:11:46 version 1.8, 2025/04/04 02:12:25
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.8  2025/04/04 02:12:25  snw
    *   Bump to 0.63.0-rc5 and make sure m_log function is never empty
    *
    *   Revision 1.7  2025/04/04 01:18:21  snw
    *   Remove vestigial logging code and bump to 0.63.0-rc4
    *
    *   Revision 1.6  2025/04/01 23:21:45  snw
    *   fmadm commands for stopping, starting, and restarting environments now functional
    *
  *   Revision 1.5  2025/04/01 20:11:46  snw   *   Revision 1.5  2025/04/01 20:11:46  snw
  *   Further work on fmadm   *   Further work on fmadm
  *   *
Line 47 Line 56
 void m_log (int level, const char *msg)  void m_log (int level, const char *msg)
 {  {
   
     FILE *fp;  
     fp = fopen ("/tmp/freem.log", "w+");  
           
 #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__)  #if defined(__linux__) | defined(__FreeBSD__) | defined(__sun__)
     syslog (level, "%s", msg);      syslog (level, "%s", msg);
 #endif  #endif
     fprintf (fp, "%s\n", msg);  
   
     fclose (fp);      return;
           
 }  }

Removed from v.1.5  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>