Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
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
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
Sophie Herold
gajim
Commits
b60fe026
Commit
b60fe026
authored
7 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Use own module logger for connection_zeroconf
parent
f4f8db52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/common/zeroconf/connection_zeroconf.py
+4
-2
4 additions, 2 deletions
gajim/common/zeroconf/connection_zeroconf.py
with
4 additions
and
2 deletions
gajim/common/zeroconf/connection_zeroconf.py
+
4
−
2
View file @
b60fe026
...
@@ -50,6 +50,8 @@ from gajim.common.zeroconf import zeroconf
...
@@ -50,6 +50,8 @@ from gajim.common.zeroconf import zeroconf
from
gajim.common.zeroconf.connection_handlers_zeroconf
import
*
from
gajim.common.zeroconf.connection_handlers_zeroconf
import
*
from
gajim.common.connection_handlers_events
import
*
from
gajim.common.connection_handlers_events
import
*
log
=
logging
.
getLogger
(
'
gajim.c.connection_zeroconf
'
)
class
ConnectionZeroconf
(
CommonConnection
,
ConnectionHandlersZeroconf
):
class
ConnectionZeroconf
(
CommonConnection
,
ConnectionHandlersZeroconf
):
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
):
ConnectionHandlersZeroconf
.
__init__
(
self
)
ConnectionHandlersZeroconf
.
__init__
(
self
)
...
@@ -73,7 +75,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
...
@@ -73,7 +75,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
values
values
"""
"""
if
not
app
.
config
.
get_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
,
'
name
'
):
if
not
app
.
config
.
get_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
,
'
name
'
):
app
.
log
.
debug
(
'
Creating zeroconf account
'
)
log
.
debug
(
'
Creating zeroconf account
'
)
app
.
config
.
add_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
)
app
.
config
.
add_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
)
app
.
config
.
set_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
,
app
.
config
.
set_per
(
'
accounts
'
,
app
.
ZEROCONF_ACC_NAME
,
'
autoconnect
'
,
True
)
'
autoconnect
'
,
True
)
...
@@ -123,7 +125,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
...
@@ -123,7 +125,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
def
reconnect
(
self
):
def
reconnect
(
self
):
# Do not try to reco while we are already trying
# Do not try to reco while we are already trying
self
.
time_to_reconnect
=
None
self
.
time_to_reconnect
=
None
app
.
log
.
debug
(
'
reconnect
'
)
log
.
debug
(
'
reconnect
'
)
self
.
disconnect
()
self
.
disconnect
()
self
.
change_status
(
self
.
old_show
,
self
.
status
)
self
.
change_status
(
self
.
old_show
,
self
.
status
)
...
...
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