ovirt-node 2.2.0 release
[ovirt-node.git] / server / development.ini
blob2295b25ac4bc04bf4034287eea65d988e9f0e217
1 # Copyright (C) 2010, Red Hat, Inc.
2 # Written by Darryl L. Pierce
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 [DEFAULT]
19 debug = true
20 # Uncomment and replace with the address which should receive any error reports
21 #email_to = you@yourdomain.com
22 smtp_server = localhost
23 error_email_from = paste@localhost
25 [server:main]
26 use = egg:Paste#http
27 host = 127.0.0.1
28 port = 8080
30 [app:main]
31 use = egg:server
32 full_stack = true
33 #lang = ru
34 cache_dir = %(here)s/data
35 beaker.session.key = ovirtserver
36 beaker.session.secret = somesecret
38 # If you'd like to fine-tune the individual locations of the cache data dirs
39 # for the Cache data, or the Session saves, un-comment the desired settings
40 # here:
41 #beaker.cache.data_dir = %(here)s/data/cache
42 #beaker.session.data_dir = %(here)s/data/sessions
44 # pick the form for your database
45 # %(here) may include a ':' character on Windows environments; this can
46 # invalidate the URI when specifying a SQLite db via path name
47 # sqlalchemy.url=postgres://username:password@hostname:port/databasename
48 # sqlalchemy.url=mysql://username:password@hostname:port/databasename
51 # If you have sqlite, here's a simple default to get you started
52 # in development
54 sqlalchemy.url = sqlite:///%(here)s/devdata.db
55 #echo shouldn't be used together with the logging module.
56 sqlalchemy.echo = false
57 sqlalchemy.echo_pool = false
58 sqlalchemy.pool_recycle = 3600
60 # if you are using Mako and want to be able to reload
61 # the mako template from disk during the development phase
62 # you should say 'true' here
63 # This option is only used for mako templating engine
64 # WARNING: if you want to deploy your application using a zipped egg
65 # (ie: if your application's setup.py defines zip-safe=True, then you
66 # MUST put "false" for the production environment because there will
67 # be no disk and real files to compare time with.
68 # On the contrary if your application defines zip-safe=False and is
69 # deployed in an unzipped manner, then you can leave this option to true
70 templating.mako.reloadfromdisk = true
72 # the compiled template dir is a directory that must be readable by your
73 # webserver. It will be used to store the resulting templates once compiled
74 # by the TemplateLookup system.
75 # During development you generally don't need this option since paste's HTTP
76 # server will have access to you development directories, but in production
77 # you'll most certainly want to have apache or nginx to write in a directory
78 # that does not contain any source code in any form for obvious security reasons.
80 #templating.mako.compiled_templates_dir = /some/dir/where/webserver/has/access
82 # WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
83 # Debug mode will enable the interactive debugging tool, allowing ANYONE to
84 # execute malicious code after an exception is raised.
85 #set debug = false
87 # Logging configuration
88 # Add additional loggers, handlers, formatters here
89 # Uses python's logging config file format
90 # http://docs.python.org/lib/logging-config-fileformat.html
92 [loggers]
93 keys = root, ovirtserver, sqlalchemy
95 [handlers]
96 keys = console
98 [formatters]
99 keys = generic
101 # If you create additional loggers, add them as a key to [loggers]
102 [logger_root]
103 level = INFO
104 handlers = console
106 [logger_ovirtserver]
107 level = DEBUG
108 handlers =
109 qualname = ovirtserver
111 [logger_sqlalchemy]
112 level = INFO
113 handlers =
114 qualname = sqlalchemy.engine
115 # "level = INFO" logs SQL queries.
116 # "level = DEBUG" logs SQL queries and results.
117 # "level = WARN" logs neither. (Recommended for production systems.)
120 # If you create additional handlers, add them as a key to [handlers]
121 [handler_console]
122 class = StreamHandler
123 args = (sys.stderr,)
124 level = NOTSET
125 formatter = generic
127 # If you create additional formatters, add them as a key to [formatters]
128 [formatter_generic]
129 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
130 datefmt = %H:%M:%S