production.ini 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ###
  2. # app configuration
  3. # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
  4. ###
  5. [app:main]
  6. use = egg:tracim
  7. pyramid.reload_templates = false
  8. pyramid.debug_authorization = false
  9. pyramid.debug_notfound = false
  10. pyramid.debug_routematch = false
  11. pyramid.default_locale_name = en
  12. sqlalchemy.url = sqlite:///%(here)s/tracim.sqlite
  13. retry.attempts = 3
  14. ###
  15. # wsgi server configuration
  16. ###
  17. [server:main]
  18. use = egg:waitress#main
  19. listen = *:6543
  20. ###
  21. # logging configuration
  22. # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
  23. ###
  24. [loggers]
  25. keys = root, tracim, sqlalchemy
  26. [handlers]
  27. keys = console
  28. [formatters]
  29. keys = generic
  30. [logger_root]
  31. level = WARN
  32. handlers = console
  33. [logger_tracim]
  34. level = WARN
  35. handlers =
  36. qualname = tracim
  37. [logger_sqlalchemy]
  38. level = WARN
  39. handlers =
  40. qualname = sqlalchemy.engine
  41. # "level = INFO" logs SQL queries.
  42. # "level = DEBUG" logs SQL queries and results.
  43. # "level = WARN" logs neither. (Recommended for production systems.)
  44. [handler_console]
  45. class = StreamHandler
  46. args = (sys.stderr,)
  47. level = NOTSET
  48. formatter = generic
  49. [formatter_generic]
  50. format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s