Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyCommon
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TMSS
Libraries
PyCommon
Commits
9dde7903
Commit
9dde7903
authored
2 months ago
by
Jorrit Schaap
Browse files
Options
Downloads
Plain Diff
Merge branch '
TMSS-3182
' into 'master'
TMSS-3182
Closes
TMSS-3182
See merge request
!13
parents
7f200ae0
8cb87fef
No related branches found
No related tags found
1 merge request
!13
TMSS-3182
Pipeline
#112433
passed with warnings
2 months ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: images
Stage: integration
Stage: publish
Pipeline: PyCommon
#112434
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tmss_pycommon/util.py
+7
-0
7 additions, 0 deletions
tmss_pycommon/util.py
with
7 additions
and
0 deletions
tmss_pycommon/util.py
+
7
−
0
View file @
9dde7903
...
...
@@ -299,3 +299,10 @@ def without_keys(org_dict: dict, keys: typing.Collection) -> dict:
def
noop
():
'''
classic noop (no-operation) function that does nothing.
'''
pass
def
configure_logging_and_timezone
(
debug_log_level
:
bool
=
False
):
'''
common method to have the same logging and timezone
'''
# make sure we run in UTC timezone
os
.
environ
[
'
TZ
'
]
=
'
UTC
'
logging
.
basicConfig
(
format
=
'
%(asctime)s %(levelname)s %(message)s
'
,
level
=
logging
.
DEBUG
if
debug_log_level
else
logging
.
INFO
)
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