Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
663eb1d4
Commit
663eb1d4
authored
Jan 12, 2021
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging enhancements, adds user identifier in message.
parent
2f578537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/proxies/UserAgent.java
.../main/java/org/objectweb/joram/mom/proxies/UserAgent.java
+3
-3
No files found.
joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/proxies/UserAgent.java
View file @
663eb1d4
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2001 - 201
9
ScalAgent Distributed Technologies
* Copyright (C) 2001 - 20
2
1 ScalAgent Distributed Technologies
* Copyright (C) 2004 France Telecom R&D
* Copyright (C) 2003 - 2004 Bull SA
* Copyright (C) 1996 - 2000 Dyade
...
...
@@ -1024,12 +1024,12 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
public
void
run
()
{
if
(
logger
.
isLoggable
(
BasicLevel
.
DEBUG
))
logger
.
log
(
BasicLevel
.
DEBUG
,
"HeartBeatTask: run - key="
+
key
);
logger
.
log
(
BasicLevel
.
DEBUG
,
"HeartBeatTask:
"
+
userId
+
"
run - key="
+
key
);
long
date
=
System
.
currentTimeMillis
();
if
((
date
-
lastRequestDate
)
>
timeout
)
{
if
(
logger
.
isLoggable
(
BasicLevel
.
WARN
))
logger
.
log
(
BasicLevel
.
WARN
,
"HeartBeatTask: close connection - key="
+
key
);
logger
.
log
(
BasicLevel
.
WARN
,
"HeartBeatTask:
"
+
userId
+
"
close connection - key="
+
key
);
Channel
.
sendTo
(
userId
,
(
Notification
)
new
CloseConnectionNot2
(
key
.
intValue
()));
this
.
cancel
();
...
...
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