1. 修改文件/etc/openstack-dashboard/local_settings中
file section为:
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': '/var/log/horizon/horizon.log',
'formatter': 'normal'
},
swiftclient section为:
'swiftclient': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': False,
}
2. 重启httpd服务
3. tailf /var/log/horizon/horizon.log