Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
9894da6a
Commit
9894da6a
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into erikj/postgres_charset_check
parents
a08bf111
72443572
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/postgres.rst
+17
-0
17 additions, 0 deletions
docs/postgres.rst
synapse/config/logger.py
+0
-1
0 additions, 1 deletion
synapse/config/logger.py
with
17 additions
and
1 deletion
docs/postgres.rst
+
17
−
0
View file @
9894da6a
Using Postgres
Using Postgres
--------------
--------------
Set up database
===============
The PostgreSQL database used *must* have the correct encoding set, otherwise
would not be able to store UTF8 strings. To create a database with the correct
encoding use, e.g.::
CREATE DATABASE synapse
ENCODING 'UTF8'
LC_COLLATE='C'
LC_CTYPE='C'
template=template0
OWNER synapse_user;
This would create an appropriate database named ``synapse`` owned by the
``synapse_user`` user (which must already exist).
Set up client
Set up client
=============
=============
...
...
This diff is collapsed.
Click to expand it.
synapse/config/logger.py
+
0
−
1
View file @
9894da6a
...
@@ -78,7 +78,6 @@ class LoggingConfig(Config):
...
@@ -78,7 +78,6 @@ class LoggingConfig(Config):
handler
.
addFilter
(
LoggingContextFilter
(
request
=
""
))
handler
.
addFilter
(
LoggingContextFilter
(
request
=
""
))
logger
.
addHandler
(
handler
)
logger
.
addHandler
(
handler
)
#logger.info("Test")
else
:
else
:
with
open
(
self
.
log_config
,
'
r
'
)
as
f
:
with
open
(
self
.
log_config
,
'
r
'
)
as
f
:
logging
.
config
.
dictConfig
(
yaml
.
load
(
f
))
logging
.
config
.
dictConfig
(
yaml
.
load
(
f
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment