Revision edf00ab3 kamaki/logger.py

b/kamaki/logger.py
31 31
# interpreted as representing official policies, either expressed
32 32
# or implied, of GRNET S.A.
33 33

  
34
from os import chmod
34 35
import logging
35 36

  
36 37

  
37
LOG_FILE = [
38
    '/var/log/kamaki.log',
39
    '/var/log/kamaki/clients.log',
40
    '/tmp/kamaki.log',
41
    'kamaki.log']
38
LOG_FILE = ['kamaki.log', '/tmp/kamaki.log']
42 39

  
43 40

  
44 41
def get_log_filename():
......
46 43
        try:
47 44
            with open(logfile, 'a+') as f:
48 45
                f.seek(0)
46
            chmod(logfile, 0600)
49 47
        except IOError:
50 48
            continue
51 49
        return logfile

Also available in: Unified diff