Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
be-esb-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
be-esb-ecosystem-maven
be-esb-core
Commits
648d574e
Commit
648d574e
authored
Sep 19, 2022
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
交易结束前清空MDC里面的日志记录
parent
2030969e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Client.java
src/main/src/com/brilliance/eibs/main/Client.java
+11
-6
No files found.
src/main/src/com/brilliance/eibs/main/Client.java
View file @
648d574e
...
...
@@ -20,6 +20,7 @@ import com.brilliance.eibs.factory.parser.ParserFactory;
import
com.brilliance.eibs.util.*
;
import
org.apache.commons.io.IOUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.MDC
;
import
java.io.File
;
import
java.io.FileOutputStream
;
...
...
@@ -335,11 +336,13 @@ public class Client {
}
catch
(
Exception
e
)
{
logger
.
error
(
"Close connection error"
,
e
);
}
finally
{
if
(
fos
!=
null
)
IOUtils
.
closeQuietly
(
fos
);
if
(
fos
!=
null
){
IOUtils
.
closeQuietly
(
fos
);
}
}
MDC
.
remove
(
LogUtil
.
LOG_FILE_NAME_SYMBOL
);
logger
.
debug
(
"transaction finally done."
);
}
logger
.
debug
(
"transaction finally done."
);
return
msg
;
}
...
...
@@ -562,10 +565,12 @@ public class Client {
}
catch
(
Exception
e
)
{
logger
.
error
(
"Close connection error"
,
e
);
}
finally
{
if
(
fos
!=
null
)
IOUtils
.
closeQuietly
(
fos
);
if
(
fos
!=
null
)
{
IOUtils
.
closeQuietly
(
fos
);
}
}
logger
.
debug
(
"transaction finally done."
);
MDC
.
remove
(
LogUtil
.
LOG_FILE_NAME_SYMBOL
);
logger
.
debug
(
"transaction finally done."
);
}
return
msg
;
}
...
...
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