Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
4073d7eb
Commit
4073d7eb
authored
Jun 07, 2022
by
Andre Freyssinet
Browse files
Avoids warning when reseted a server in INSTALLED status.
parent
903fb32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
View file @
4073d7eb
...
...
@@ -1197,6 +1197,11 @@ public final class AgentServer {
*/
public
static
void
reset
()
{
synchronized
(
status
)
{
if
(
status
.
value
==
Status
.
INSTALLED
)
{
// The server is already reseted, avoid a useless warning.
logmon
.
log
(
BasicLevel
.
INFO
,
getName
()
+
", already reseted."
);
return
;
}
if
(
status
.
value
!=
Status
.
STOPPED
)
{
logmon
.
log
(
BasicLevel
.
WARN
,
getName
()
+
", cannot reset, bad status: "
+
getStatusInfo
());
...
...
@@ -1552,7 +1557,10 @@ public final class AgentServer {
LoggerFactory
loggerFactory
)
throws
Exception
{
name
=
new
StringBuffer
(
"AgentServer#"
).
append
(
sid
).
toString
();
if
(
loggerFactory
!=
null
)
Debug
.
setLoggerFactory
(
loggerFactory
);
if
(
loggerFactory
!=
null
)
{
System
.
err
.
println
(
"AgentServer.init: Could not set logger factory."
);
// Debug.setLoggerFactory(loggerFactory);
}
logmon
=
Debug
.
getLogger
(
AgentServer
.
class
.
getName
()
+
".#"
+
sid
);
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
...
...
Write
Preview
Supports
Markdown
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