Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
64916085
Commit
64916085
authored
Mar 09, 2016
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to enable logging for all subscriptions at once
parent
b446001d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
opcua/client/ua_client.py
opcua/client/ua_client.py
+1
-1
opcua/server/internal_subscription.py
opcua/server/internal_subscription.py
+2
-2
No files found.
opcua/client/ua_client.py
View file @
64916085
...
...
@@ -18,7 +18,7 @@ class UASocketClient(object):
timeout is the timeout used while waiting for an ua answer from server
"""
def
__init__
(
self
,
timeout
=
1
,
security_policy
=
ua
.
SecurityPolicy
()):
self
.
logger
=
logging
.
getLogger
(
__name__
+
"Socket"
)
self
.
logger
=
logging
.
getLogger
(
__name__
+
"
.
Socket"
)
self
.
_thread
=
None
self
.
_lock
=
Lock
()
self
.
timeout
=
timeout
...
...
opcua/server/internal_subscription.py
View file @
64916085
...
...
@@ -26,7 +26,7 @@ class MonitoredItemService(object):
"""
def
__init__
(
self
,
isub
,
aspace
):
self
.
logger
=
logging
.
getLogger
(
__name__
+
str
(
isub
.
data
.
SubscriptionId
))
self
.
logger
=
logging
.
getLogger
(
__name__
+
"."
+
str
(
isub
.
data
.
SubscriptionId
))
self
.
isub
=
isub
self
.
aspace
=
aspace
self
.
_lock
=
RLock
()
...
...
@@ -193,7 +193,7 @@ class MonitoredItemService(object):
class
InternalSubscription
(
object
):
def
__init__
(
self
,
subservice
,
data
,
addressspace
,
callback
):
self
.
logger
=
logging
.
getLogger
(
__name__
+
str
(
data
.
SubscriptionId
))
self
.
logger
=
logging
.
getLogger
(
__name__
+
"."
+
str
(
data
.
SubscriptionId
))
self
.
aspace
=
addressspace
self
.
subservice
=
subservice
self
.
data
=
data
...
...
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