From ff31c9236b1fd7465ea9687fc735e8af882e780e Mon Sep 17 00:00:00 2001
From: Eugeni Dodonov <eugeni@mandriva.org>
Date: Tue, 6 Jan 2009 21:31:46 +0000
Subject: Updated to working version of new msec.

Conflicts:
	Makefile
	cron-sh/security_check.sh
	share/msec.py
---
 share/Log.py | 54 ------------------------------------------------------
 1 file changed, 54 deletions(-)
 delete mode 100644 share/Log.py

(limited to 'share/Log.py')

diff --git a/share/Log.py b/share/Log.py
deleted file mode 100644
index 061a5fb..0000000
--- a/share/Log.py
+++ /dev/null
@@ -1,54 +0,0 @@
-#---------------------------------------------------------------
-# Project         : Mandriva Llinux
-# Module          : msec
-# File            : Log.py
-# Version         : $Id$
-# Author          : Frederic Lepied
-# Created On      : Wed Dec  5 23:50:29 2001
-# Purpose         : write log through syslog conforming to
-#                   the Mandriva Linux guideline for the explanations
-#                   in tools. Errors are reported to stderr.
-#---------------------------------------------------------------
-
-import syslog
-import sys
-import string
-import Config
-
-_name = ''
-_use_syslog = 1
-
-def initlog(name, facility = syslog.LOG_AUTH):
-    global _name
-    global _use_syslog
-
-    _use_syslog = (Config.get_config('log', 'syslog') == 'syslog')
-
-    if _use_syslog:
-        syslog.openlog(name, 0, facility)
-        
-    _name = name
-    
-def log(s, level = syslog.LOG_INFO):
-    global _use_syslog
-    
-    if _use_syslog:
-        for l in string.split(s, '\n'):
-            syslog.syslog(level, l)
-    else:
-        sys.stderr.write(s + '\n')
-    return 1
-
-def closelog():
-    global _use_syslog
-    
-    if _use_syslog:
-        syslog.closelog()
-
-def error(s):
-    global _name
-    
-    sys.stderr.write(_name + ': ' + s + '\n')
-    log(s)
-    
-# Log.py ends here
-- 
cgit v1.2.1