← Back to team overview

openstack team mailing list archive

Keystone Not Logging

 

Hi,
I have Keystone set up (2012.1~rc1~20120316.2145-0ubuntu1) on Ubuntu 12.04
B1 and it isn't logging.
Only when stopping the keystone service then running 'keystone-all' in a
terminal do I get to see all the debug output.
I've checked permissions (/var/log/keystone and keystone.log are owned by
keystone user/group) and I've tried the packaged logging.conf.sample (note
the ubuntu package ships with this referencing 'glance') to no avail.

/etc/keystone/keystone.conf
...
verbose = True
debug = True
log_config = /etc/keystone/logging.conf
...


/etc/keystone/logging.conf
[loggers]
keys=root,keystone,combined

[formatters]
keys=normal,normal_with_name,debug

[handlers]
keys=production,file,devel

[logger_root]
level=NOTSET
handlers=devel

[logger_keystone]
level=DEBUG
handlers=devel
qualname=keystone

[logger_combined]
level=DEBUG
handlers=devel
qualname=keystone-combined

[handler_production]
class=handlers.SysLogHandler
level=ERROR
formatter=normal_with_name
args=(('localhost', handlers.SYSLOG_UDP_PORT),
handlers.SysLogHandler.LOG_USER)

[handler_file]
class=FileHandler
level=DEBUG
formatter=normal_with_name
args=('/var/log/keystone/keystone.log', 'w')

[handler_devel]
class=StreamHandler
level=NOTSET
formatter=debug
args=(sys.stdout,)

[formatter_normal]
format=%(asctime)s %(levelname)s %(message)s

[formatter_normal_with_name]
format=(%(name)s): %(asctime)s %(levelname)s %(message)s

[formatter_debug]
format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s
%(message)s



Is anyone able to help out what's up with this?

Cheers,

Kev
-- 
Kevin Jackson
@itarchitectkev

Follow ups