Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
joram
joram
Commits
14b323ec
Commit
14b323ec
authored
Jul 24, 2020
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid useless stacktraces in log.
parent
c31ad8c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
...m/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
+12
-4
No files found.
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/AgentServer.java
View file @
14b323ec
...
...
@@ -1257,16 +1257,18 @@ public final class AgentServer {
String
tname
=
dis
.
readUTF
();
transaction
=
(
Transaction
)
Class
.
forName
(
tname
).
newInstance
();
}
catch
(
Exception
exc
)
{
logmon
.
log
(
BasicLevel
.
FATAL
,
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
FATAL
,
getName
()
+
", can't instantiate transaction manager"
,
exc
);
throw
new
Exception
(
"Can't instantiate transaction manager
"
);
throw
new
Exception
(
"Can't instantiate transaction manager
: "
+
exc
.
getMessage
()
);
}
finally
{
if
(
dis
!=
null
)
dis
.
close
();
}
try
{
transaction
.
init
(
path
);
}
catch
(
IOException
exc
)
{
logmon
.
log
(
BasicLevel
.
FATAL
,
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
FATAL
,
getName
()
+
", can't start transaction manager"
,
exc
);
throw
new
Exception
(
"Can't start transaction manager: "
+
exc
.
getMessage
());
}
...
...
@@ -1544,7 +1546,10 @@ public final class AgentServer {
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
" jmx failed"
,
exc
);
}
}
catch
(
Exception
exc
)
{
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
"Cannot initialize"
,
exc
);
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
" cannot initialize"
,
exc
);
else
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
" cannot initialize: "
+
exc
.
getMessage
());
synchronized
(
status
)
{
// AF: Will be replaced by a BAD_INITIALIZED status allowing the
// re-initialization..
...
...
@@ -1552,7 +1557,10 @@ public final class AgentServer {
}
throw
exc
;
}
catch
(
Throwable
t
)
{
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
"Cannot initialize"
,
t
);
else
logmon
.
log
(
BasicLevel
.
ERROR
,
getName
()
+
" cannot initialize: "
+
t
.
getMessage
());
synchronized
(
status
)
{
// AF: Will be replaced by a BAD_INITIALIZED status allowing the
// re-initialization..
...
...
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