Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
d021ea9a
Commit
d021ea9a
authored
8 years ago
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up minor pep8/pylint violations
parent
e35bd75a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
playbooks/callback_plugins/task_timing.py
+6
-4
No files found.
playbooks/callback_plugins/task_timing.py
View file @
d021ea9a
import
os
from
os.path
import
splitext
,
basename
,
exists
,
dirname
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
import
json
import
json
import
time
import
logging
import
logging
import
datadog
import
os
from
os.path
import
splitext
,
basename
,
exists
,
dirname
import
sys
import
sys
import
time
import
datadog
logging
.
basicConfig
(
level
=
logging
.
INFO
,
stream
=
sys
.
stdout
)
logging
.
basicConfig
(
level
=
logging
.
INFO
,
stream
=
sys
.
stdout
)
logging
.
getLogger
(
"requests"
)
.
setLevel
(
logging
.
WARNING
)
logging
.
getLogger
(
"requests"
)
.
setLevel
(
logging
.
WARNING
)
...
@@ -37,6 +38,7 @@ class Timestamp(object):
...
@@ -37,6 +38,7 @@ class Timestamp(object):
class
Formatter
(
object
):
class
Formatter
(
object
):
pass
pass
class
DatadogFormatter
(
Formatter
):
class
DatadogFormatter
(
Formatter
):
def
__init__
(
self
):
def
__init__
(
self
):
super
(
DatadogFormatter
,
self
)
.
__init__
()
super
(
DatadogFormatter
,
self
)
.
__init__
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment