Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
f4dcdc1f
提交
f4dcdc1f
authored
3月 26, 2017
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make cppcheck happy
上级
d03a4c10
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
5 行删除
+8
-5
Logger.hpp
worker/include/Logger.hpp
+2
-2
Logger.cpp
worker/src/Logger.cpp
+2
-2
tests.cpp
worker/test/tests.cpp
+4
-1
没有找到文件。
worker/include/Logger.hpp
浏览文件 @
f4dcdc1f
...
@@ -101,8 +101,8 @@
...
@@ -101,8 +101,8 @@
class
Logger
class
Logger
{
{
public
:
public
:
static
void
Init
(
const
std
::
string
id
,
Channel
::
UnixStreamSocket
*
channel
);
static
void
Init
(
const
std
::
string
&
id
,
Channel
::
UnixStreamSocket
*
channel
);
static
void
Init
(
const
std
::
string
id
);
static
void
Init
(
const
std
::
string
&
id
);
public
:
public
:
static
std
::
string
id
;
static
std
::
string
id
;
...
...
worker/src/Logger.cpp
浏览文件 @
f4dcdc1f
...
@@ -11,7 +11,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE];
...
@@ -11,7 +11,7 @@ char Logger::buffer[MS_LOGGER_BUFFER_SIZE];
/* Class methods. */
/* Class methods. */
void
Logger
::
Init
(
const
std
::
string
id
,
Channel
::
UnixStreamSocket
*
channel
)
void
Logger
::
Init
(
const
std
::
string
&
id
,
Channel
::
UnixStreamSocket
*
channel
)
{
{
Logger
::
id
=
id
;
Logger
::
id
=
id
;
Logger
::
channel
=
channel
;
Logger
::
channel
=
channel
;
...
@@ -19,7 +19,7 @@ void Logger::Init(const std::string id, Channel::UnixStreamSocket* channel)
...
@@ -19,7 +19,7 @@ void Logger::Init(const std::string id, Channel::UnixStreamSocket* channel)
MS_TRACE
();
MS_TRACE
();
}
}
void
Logger
::
Init
(
const
std
::
string
id
)
void
Logger
::
Init
(
const
std
::
string
&
id
)
{
{
Logger
::
id
=
id
;
Logger
::
id
=
id
;
...
...
worker/test/tests.cpp
浏览文件 @
f4dcdc1f
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include "DepLibUV.hpp"
#include "DepLibUV.hpp"
#include "DepOpenSSL.hpp"
#include "DepOpenSSL.hpp"
#include "Utils.hpp"
#include "Utils.hpp"
#include <string>
static
void
init
();
static
void
init
();
static
void
destroy
();
static
void
destroy
();
...
@@ -17,8 +18,10 @@ int main(int argc, char* argv[])
...
@@ -17,8 +18,10 @@ int main(int argc, char* argv[])
Settings
::
configuration
.
logTags
.
rtp
=
true
;
Settings
::
configuration
.
logTags
.
rtp
=
true
;
Settings
::
configuration
.
logTags
.
rtcp
=
true
;
Settings
::
configuration
.
logTags
.
rtcp
=
true
;
std
::
string
loggerId
=
"tests"
;
// Initialize the Logger.
// Initialize the Logger.
Logger
::
Init
(
"tests"
);
Logger
::
Init
(
loggerId
);
init
();
init
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论