From 7f63f973141f973faff7896087697f5150332864 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 30 十二月 2016 12:32:02 +0800
Subject: [PATCH]
---
RtspFace/main.cpp | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/RtspFace/main.cpp b/RtspFace/main.cpp
index bf67254..2e9ae59 100644
--- a/RtspFace/main.cpp
+++ b/RtspFace/main.cpp
@@ -9,11 +9,12 @@
#include "PL_SensetimeFaceDetect.h"
-#include <iostream>
-using namespace std;
+#include "logger.h"
int main(int argc, char** argv)
{
+ initLogger(2);
+
PipeLine pipeLine;
pipeLine.register_elem_creator("PL_RTSPClient", create_PL_RTSPClient);
@@ -37,7 +38,7 @@
bool ret = rtspClient->init(&rtspConfig);
if (!ret)
{
- cout << "rtspClient.init error" << endl;
+ LOG(ERROR) << "rtspClient.init error";
exit(EXIT_FAILURE);
}
}
@@ -64,7 +65,7 @@
// bool ret = queue1->init(&config);
// if (!ret)
// {
- // cout << "queue1.init error" << endl;
+ // LOG(ERROR) << "queue1.init error";
// exit(EXIT_FAILURE);
// }
//}
@@ -80,15 +81,15 @@
bool ret = rtspServer->init(&config);
if (!ret)
{
- cout << "rtspServer.init error" << endl;
+ LOG(ERROR) << "rtspServer.init error";
exit(EXIT_FAILURE);
}
}
while(true)
{
- //cout << "begin pipe" << endl;
+ //LOG(ERROR) << "begin pipe";
pipeLine.pipe();
- //cout << "end pipe" << endl;
+ //LOG(ERROR) << "end pipe";
}
}
--
Gitblit v1.8.0