Commit a7649f347200fe0567d9fb543d17e865ac2e8aca

Authored by Sergio Oliveira
1 parent 10263cde

Change colab logging to ERROR instead of DEBUG

cookbooks/basics/templates/default/softwarepublico.repo.erb
1 [isv_spb_spb] 1 [isv_spb_spb]
2 name=Software Publico Brasileiro (CentOS_7) 2 name=Software Publico Brasileiro (CentOS_7)
3 type=rpm-md 3 type=rpm-md
4 -baseurl=<%= node['config']['rpm_repository'] || 'http://download.opensuse.org/repositories/isv:/spb:/devel/CentOS_7/' %> 4 +#baseurl=<%= node['config']['rpm_repository'] || 'http://download.opensuse.org/repositories/isv:/spb:/devel/CentOS_7/' %>
  5 +baseurl=http://rpm.tracy.com.br/isv_spb_devel/
5 gpgcheck=1 6 gpgcheck=1
6 gpgkey=file:///etc/yum.repos.d/softwarepublico.key 7 gpgkey=file:///etc/yum.repos.d/softwarepublico.key
7 enabled=1 8 enabled=1
cookbooks/colab/templates/02-logging.py.erb
1 LOGGING = { 1 LOGGING = {
2 - 'loggers': {  
3 - 'revproxy': {  
4 - 'handlers': ['file'],  
5 - 'level': 'ERROR'},  
6 - 'django': {  
7 - 'handlers': ['file'],  
8 - 'level': 'DEBUG'},  
9 - },  
10 - 'version': 1, 'formatters': { 2 + 'version': 1,
  3 + 'disable_existing_loggers': True,
  4 + 'formatters': {
11 'verbose': { 5 'verbose': {
12 'format': '%(asctime)s (%(name)s) %(levelname)s: %(message)s' 6 'format': '%(asctime)s (%(name)s) %(levelname)s: %(message)s'
13 } 7 }
14 }, 8 },
15 - 'disable_existing_loggers': True, 'handlers': { 9 + 'handlers': {
16 'file': { 10 'file': {
17 'level': 'DEBUG', 11 'level': 'DEBUG',
18 'interval': 24, 12 'interval': 24,
@@ -20,7 +14,17 @@ LOGGING = { @@ -20,7 +14,17 @@ LOGGING = {
20 'encoding': 'UTF-8', 14 'encoding': 'UTF-8',
21 'formatter': 'verbose', 15 'formatter': 'verbose',
22 'class': 'logging.handlers.TimedRotatingFileHandler', 16 'class': 'logging.handlers.TimedRotatingFileHandler',
23 - 'filename': '/var/log/colab/colab.log' 17 + 'filename': '/var/log/colab/colab.log',
24 } 18 }
25 - } 19 + },
  20 + 'loggers': {
  21 + 'revproxy': {
  22 + 'handlers': ['file'],
  23 + 'level': 'ERROR',
  24 + },
  25 + 'django': {
  26 + 'handlers': ['file'],
  27 + 'level': 'ERROR',
  28 + },
  29 + },
26 } 30 }