Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
OpenXG
OpenXG-AMF
Commits
a2416594
Commit
a2416594
authored
Aug 12, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unecessary logger amf_n2_task
parent
a3f62359
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
18 deletions
+15
-18
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+3
-3
src/common/logger.cpp
src/common/logger.cpp
+12
-13
src/common/logger.hpp
src/common/logger.hpp
+0
-2
No files found.
src/amf-app/amf_n2.cpp
View file @
a2416594
...
...
@@ -146,21 +146,21 @@ void amf_n2_task(void* args_p) {
amf_n2_inst
->
handle_itti_message
(
ref
(
*
m
));
}
break
;
case
UE_CONTEXT_RELEASE_COMMAND
:
{
Logger
::
task_
amf_n2
().
info
(
Logger
::
amf_n2
().
info
(
"Received UE_CONTEXT_RELEASE_COMMAND message, handling"
);
itti_ue_context_release_command
*
m
=
dynamic_cast
<
itti_ue_context_release_command
*>
(
msg
);
amf_n2_inst
->
handle_itti_message
(
ref
(
*
m
));
}
break
;
case
UE_CONTEXT_RELEASE_COMPLETE
:
{
Logger
::
task_
amf_n2
().
info
(
Logger
::
amf_n2
().
info
(
"Received UE_CONTEXT_RELEASE_COMPLETE message, handling"
);
itti_ue_context_release_complete
*
m
=
dynamic_cast
<
itti_ue_context_release_complete
*>
(
msg
);
amf_n2_inst
->
handle_itti_message
(
ref
(
*
m
));
}
break
;
case
PDU_SESSION_RESOURCE_RELEASE_COMMAND
:
{
Logger
::
task_
amf_n2
().
info
(
Logger
::
amf_n2
().
info
(
"Received PDU_SESSION_RESOURCE_RELEASE_COMMAND message, handling"
);
itti_pdu_session_resource_release_command
*
m
=
dynamic_cast
<
itti_pdu_session_resource_release_command
*>
(
msg
);
...
...
src/common/logger.cpp
View file @
a2416594
...
...
@@ -66,19 +66,18 @@ void Logger::_init(
std
::
stringstream
ss
;
ss
<<
"[%Y-%m-%dT%H:%M:%S.%f] ["
<<
app
<<
"] [%n] [%l] %v"
;
m_async_cmd
=
new
_Logger
(
"asnyc_c"
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_app
=
new
_Logger
(
"amf_app"
,
m_sinks
,
ss
.
str
().
c_str
());
m_config
=
new
_Logger
(
"configurations"
,
m_sinks
,
ss
.
str
().
c_str
());
m_system
=
new
_Logger
(
"system "
,
m_sinks
,
ss
.
str
().
c_str
());
m_sctp
=
new
_Logger
(
"sctp "
,
m_sinks
,
ss
.
str
().
c_str
());
m_nas_mm
=
new
_Logger
(
"nas_mm "
,
m_sinks
,
ss
.
str
().
c_str
());
m_ngap
=
new
_Logger
(
"ngap "
,
m_sinks
,
ss
.
str
().
c_str
());
m_itti
=
new
_Logger
(
"itti "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n2
=
new
_Logger
(
"amf_n2 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n1
=
new
_Logger
(
"amf_n1 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n11
=
new
_Logger
(
"amf_n11"
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_server
=
new
_Logger
(
"amf_server"
,
m_sinks
,
ss
.
str
().
c_str
());
m_task_amf_n2
=
new
_Logger
(
"task_amf_n2"
,
m_sinks
,
ss
.
str
().
c_str
());
m_async_cmd
=
new
_Logger
(
"asnyc_c"
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_app
=
new
_Logger
(
"amf_app"
,
m_sinks
,
ss
.
str
().
c_str
());
m_config
=
new
_Logger
(
"configurations"
,
m_sinks
,
ss
.
str
().
c_str
());
m_system
=
new
_Logger
(
"system "
,
m_sinks
,
ss
.
str
().
c_str
());
m_sctp
=
new
_Logger
(
"sctp "
,
m_sinks
,
ss
.
str
().
c_str
());
m_nas_mm
=
new
_Logger
(
"nas_mm "
,
m_sinks
,
ss
.
str
().
c_str
());
m_ngap
=
new
_Logger
(
"ngap "
,
m_sinks
,
ss
.
str
().
c_str
());
m_itti
=
new
_Logger
(
"itti "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n2
=
new
_Logger
(
"amf_n2 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n1
=
new
_Logger
(
"amf_n1 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_n11
=
new
_Logger
(
"amf_n11"
,
m_sinks
,
ss
.
str
().
c_str
());
m_amf_server
=
new
_Logger
(
"amf_server"
,
m_sinks
,
ss
.
str
().
c_str
());
}
//------------------------------------------------------------------------------
...
...
src/common/logger.hpp
View file @
a2416594
...
...
@@ -94,7 +94,6 @@ class Logger {
static
_Logger
&
amf_n1
()
{
return
*
singleton
().
m_amf_n1
;
}
static
_Logger
&
amf_n11
()
{
return
*
singleton
().
m_amf_n11
;
}
static
_Logger
&
amf_server
()
{
return
*
singleton
().
m_amf_server
;
}
static
_Logger
&
task_amf_n2
()
{
return
*
singleton
().
m_task_amf_n2
;
}
private:
static
Logger
*
m_singleton
;
...
...
@@ -124,7 +123,6 @@ class Logger {
_Logger
*
m_amf_n1
;
_Logger
*
m_amf_n11
;
_Logger
*
m_amf_server
;
_Logger
*
m_task_amf_n2
;
};
#endif
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