Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flamenco-worker-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
blender
flamenco-worker-python
Commits
ff3781ff
Commit
ff3781ff
authored
7 years ago
by
Sybren A. Stüvel
Browse files
Options
Downloads
Patches
Plain Diff
Always log the version of Flamenco Manager.
parent
bdd50d6a
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
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
flamenco_worker/cli.py
+16
-0
16 additions, 0 deletions
flamenco_worker/cli.py
with
21 additions
and
0 deletions
CHANGELOG.md
+
5
−
0
View file @
ff3781ff
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
This file logs the changes that are actually interesting to users (new features,
This file logs the changes that are actually interesting to users (new features,
changed functionality, fixed bugs).
changed functionality, fixed bugs).
## Version 2.1.1 (in development)
-
Always log the version of Flamenco Manager.
## Version 2.1.0 (2018-01-04)
## Version 2.1.0 (2018-01-04)
-
Python 3.5.4 is required as minimum Python version.
-
Python 3.5.4 is required as minimum Python version.
...
...
This diff is collapsed.
Click to expand it.
flamenco_worker/cli.py
+
16
−
0
View file @
ff3781ff
...
@@ -48,6 +48,8 @@ def main():
...
@@ -48,6 +48,8 @@ def main():
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
log
.
debug
(
'
Starting, pid=%d
'
,
os
.
getpid
())
log
.
debug
(
'
Starting, pid=%d
'
,
os
.
getpid
())
log_startup
()
if
args
.
test
:
if
args
.
test
:
log
.
warning
(
'
Test mode enabled, overriding task_types=%r
'
,
log
.
warning
(
'
Test mode enabled, overriding task_types=%r
'
,
confparser
.
value
(
'
task_types
'
))
confparser
.
value
(
'
task_types
'
))
...
@@ -260,5 +262,19 @@ def construct_asyncio_loop() -> asyncio.AbstractEventLoop:
...
@@ -260,5 +262,19 @@ def construct_asyncio_loop() -> asyncio.AbstractEventLoop:
return
loop
return
loop
def
log_startup
():
"""
Log the version of Flamenco Worker.
"""
from
.
import
__version__
log
=
logging
.
getLogger
(
__name__
)
old_level
=
log
.
level
try
:
log
.
setLevel
(
logging
.
INFO
)
log
.
info
(
'
Starting Flamenco Worker %s
'
,
__version__
)
finally
:
log
.
setLevel
(
old_level
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
main
()
main
()
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