Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
tomotools
tomwer
Commits
4ea7c32e
Commit
4ea7c32e
authored
4 years ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
fix rebase typo
parent
d84db845
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomwer/web/client.py
+0
-34
0 additions, 34 deletions
tomwer/web/client.py
with
0 additions
and
34 deletions
tomwer/web/client.py
+
0
−
34
View file @
4ea7c32e
...
...
@@ -31,14 +31,11 @@ __license__ = "MIT"
__date__
=
"
28/04/2017
"
<<<<<<<
HEAD
try
:
import
graypy
has_graypy
=
True
except
:
has_graypy
=
False
=======
>>>>>>>
1
ab687cfd
...
move
graypy
handler
from
from
the
OWClient
to
move
it
in
the
launcher
side
from
.config
import
grayport_port
,
grayport_host
import
os
import
socket
...
...
@@ -68,37 +65,6 @@ class OWClient(object):
_logger
.
warning
(
'
unknow host %s
'
%
grayport_host
)
_INFO_UNKNOWN_HOST_NAME
=
True
return
<<<<<<<
HEAD
if
type
(
loggers
)
not
in
(
list
,
tuple
):
loggers
=
(
loggers
,
)
if
not
has_graypy
:
_logger
.
info
(
'
graypy not install. No log will be send to graylog
'
)
return
for
logger
in
loggers
:
if
os
.
environ
.
get
(
'
ORANGE_WEB_LOG
'
,
'
True
'
)
==
'
True
'
:
if
hasattr
(
graypy
,
'
GELFHandler
'
):
constructor
=
graypy
.
GELFHandler
elif
hasattr
(
graypy
,
'
GELFUDPHandler
'
):
constructor
=
graypy
.
GELFUDPHandler
else
:
logger
.
warning
(
'
Fail to find the correct constructor from graypy
'
)
return
try
:
self
.
graylogHandler
=
constructor
(
grayport_host
,
grayport_port
)
except
:
if
OWClient
.
_log_graylog_err
:
logger
.
warning
(
'
Fail to create GELFHandler. Won
\'
t report log message
'
)
OWClient
.
_log_graylog_err
=
False
else
:
logger
.
addHandler
(
self
.
graylogHandler
)
logger
.
debug
(
'
- add graypy handler
'
)
else
:
info
=
'
No log will be send to graylog.
'
info
+=
'
ORANGE_WEB_LOG variable is setted to False
'
logger
.
debug
(
info
)
=======
>>>>>>>
1
ab687cfd
...
move
graypy
handler
from
from
the
OWClient
to
move
it
in
the
launcher
side
@staticmethod
def
_knows_hostname
(
hostname
):
...
...
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