Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pump, Cedric
lab-tracing
Commits
6c9f2695
Commit
6c9f2695
authored
Mar 07, 2021
by
Nane Kratzke
Browse files
Hip hop
parent
3ac00a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiphop/service.py
View file @
6c9f2695
...
@@ -24,7 +24,7 @@ def hip():
...
@@ -24,7 +24,7 @@ def hip():
r
=
""
r
=
""
url
=
f
"http://
{
service
}
-
{
tier
+
1
}
/hip"
url
=
f
"http://
{
service
}
-
{
tier
+
1
}
/hip"
try
:
try
:
r
=
requests
.
get
(
url
).
content
r
=
requests
.
get
(
url
).
content
.
decode
(
'utf-8'
)
except
Exception
as
ex
:
except
Exception
as
ex
:
logging
.
error
(
f
"Fetching
{
url
}
failed (
{
ex
}
)"
)
logging
.
error
(
f
"Fetching
{
url
}
failed (
{
ex
}
)"
)
r
=
"END"
r
=
"END"
...
@@ -33,7 +33,6 @@ def hip():
...
@@ -33,7 +33,6 @@ def hip():
return
f
"
{
hip
}
hop-
{
tier
}
->
{
r
}
"
.
strip
()
return
f
"
{
hip
}
hop-
{
tier
}
->
{
r
}
"
.
strip
()
# This is just to demonstrate the power and pitfalls of centralized
# This is just to demonstrate the power and pitfalls of centralized
# consolidated logging.
# consolidated logging.
if
tier
<=
1
:
if
tier
<=
1
:
...
...
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