Commit | Line | Data |
---|---|---|
65f20ca4 BP |
1 | # A generic, single database configuration. |
2 | ||
3 | [alembic] | |
4 | # path to migration scripts | |
5 | script_location = %(here)s/mediagoblin/db/migrations | |
6 | ||
7 | # template used to generate migration files | |
8 | # file_template = %%(rev)s_%%(slug)s | |
9 | ||
10 | # max length of characters to apply to the | |
11 | # "slug" field | |
12 | #truncate_slug_length = 40 | |
13 | ||
14 | # set to 'true' to run the environment during | |
15 | # the 'revision' command, regardless of autogenerate | |
16 | # revision_environment = false | |
17 | ||
18 | # set to 'true' to allow .pyc and .pyo files without | |
19 | # a source .py file to be detected as revisions in the | |
20 | # versions/ directory | |
21 | # sourceless = false | |
22 | ||
65f20ca4 BP |
23 | # Logging configuration |
24 | [loggers] | |
25 | keys = root,sqlalchemy,alembic | |
26 | ||
27 | [handlers] | |
28 | keys = console | |
29 | ||
30 | [formatters] | |
31 | keys = generic | |
32 | ||
33 | [logger_root] | |
34 | level = WARN | |
35 | handlers = console | |
36 | qualname = | |
37 | ||
38 | [logger_sqlalchemy] | |
39 | level = WARN | |
40 | handlers = | |
41 | qualname = sqlalchemy.engine | |
42 | ||
43 | [logger_alembic] | |
44 | level = INFO | |
45 | handlers = | |
46 | qualname = alembic | |
47 | ||
48 | [handler_console] | |
49 | class = StreamHandler | |
50 | args = (sys.stderr,) | |
51 | level = NOTSET | |
52 | formatter = generic | |
53 | ||
54 | [formatter_generic] | |
55 | format = %(levelname)-5.5s [%(name)s] %(message)s | |
56 | datefmt = %H:%M:%S |