Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
aff3d769
Unverified
Commit
aff3d769
authored
6 years ago
by
Richard van der Hoff
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3416 from matrix-org/rav/restart_indicator
Write a clear restart indicator in logs
parents
02bfc581
245d53d3
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
synapse/app/homeserver.py
+1
-6
1 addition, 6 deletions
synapse/app/homeserver.py
synapse/config/logger.py
+18
-6
18 additions, 6 deletions
synapse/config/logger.py
with
19 additions
and
12 deletions
synapse/app/homeserver.py
+
1
−
6
View file @
aff3d769
...
...
@@ -318,11 +318,6 @@ def setup(config_options):
# check any extra requirements we have now we have a config
check_requirements
(
config
)
version_string
=
"
Synapse/
"
+
get_version_string
(
synapse
)
logger
.
info
(
"
Server hostname: %s
"
,
config
.
server_name
)
logger
.
info
(
"
Server version: %s
"
,
version_string
)
events
.
USE_FROZEN_DICTS
=
config
.
use_frozen_dicts
tls_server_context_factory
=
context_factory
.
ServerContextFactory
(
config
)
...
...
@@ -335,7 +330,7 @@ def setup(config_options):
db_config
=
config
.
database_config
,
tls_server_context_factory
=
tls_server_context_factory
,
config
=
config
,
version_string
=
version_string
,
version_string
=
"
Synapse/
"
+
get_
version_string
(
synapse
)
,
database_engine
=
database_engine
,
)
...
...
This diff is collapsed.
Click to expand it.
synapse/config/logger.py
+
18
−
6
View file @
aff3d769
...
...
@@ -12,17 +12,20 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
._base
import
Config
from
synapse.util.logcontext
import
LoggingContextFilter
from
twisted.logger
import
globalLogBeginner
,
STDLibLogObserver
import
logging
import
logging.config
import
yaml
from
string
import
Template
import
os
import
signal
from
string
import
Template
import
sys
from
twisted.logger
import
STDLibLogObserver
,
globalLogBeginner
import
yaml
import
synapse
from
synapse.util.logcontext
import
LoggingContextFilter
from
synapse.util.versionstring
import
get_version_string
from
._base
import
Config
DEFAULT_LOG_CONFIG
=
Template
(
"""
version: 1
...
...
@@ -202,6 +205,15 @@ def setup_logging(config, use_worker_options=False):
if
getattr
(
signal
,
"
SIGHUP
"
):
signal
.
signal
(
signal
.
SIGHUP
,
sighup
)
# make sure that the first thing we log is a thing we can grep backwards
# for
logging
.
warn
(
"
***** STARTING SERVER *****
"
)
logging
.
warn
(
"
Server %s version %s
"
,
sys
.
argv
[
0
],
get_version_string
(
synapse
),
)
logging
.
info
(
"
Server hostname: %s
"
,
config
.
server_name
)
# It's critical to point twisted's internal logging somewhere, otherwise it
# stacks up and leaks kup to 64K object;
# see: https://twistedmatrix.com/trac/ticket/8164
...
...
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