提交 ce64caa6 编写于 作者: W WeijieSun

remove __TITLE__ macro from logging

Summary: Ref T10562

Test Plan: N/A

Reviewers: qinzuoyan, cailiuyang

Reviewed By: qinzuoyan

Subscribers: #pegasus

Maniphest Tasks: T10562

Differential Revision: https://phabricator.d.xiaomi.net/D84832
上级 d8fa8f98
Subproject commit be1bdfe95fc96484b0bcdae31ce621c0d122ec7d
Subproject commit c1e43b4e040847c8fbbbb83a4409265ab026d41d
......@@ -4,11 +4,6 @@
#include "pegasus_client_factory_impl.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.client.factory.impl"
namespace pegasus {
namespace client {
......
......@@ -15,11 +15,6 @@
#include <pegasus_utils.h>
#include "pegasus_client_impl.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.client.impl"
using namespace ::dsn;
namespace pegasus {
......
......@@ -5,11 +5,6 @@
#include "pegasus_client_impl.h"
#include <pegasus_const.h>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.scanner.impl"
using namespace ::dsn;
using namespace pegasus;
......
......@@ -4,11 +4,6 @@
#include "proxy_layer.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.rproxy.layer"
namespace pegasus {
namespace proxy {
......
......@@ -10,11 +10,6 @@
#include <pegasus_utils.h>
#include "redis_parser.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.rproxy.parser"
#define CR '\015'
#define LF '\012'
......
......@@ -13,12 +13,6 @@
#include "proxy_layer.h"
#include "redis_parser.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.rproxy.test"
using namespace boost::asio;
using namespace ::pegasus::proxy;
......
......@@ -9,11 +9,6 @@
#include <iomanip>
#include <algorithm>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "available.detector"
namespace pegasus {
namespace server {
......
......@@ -11,11 +11,6 @@
#include <cstdlib>
#include <iomanip>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "info.collector"
#define METRICSNUM 3
using namespace ::dsn;
......
......@@ -12,11 +12,6 @@
#include <fstream>
#include <iomanip>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "info.collector.app"
namespace pegasus {
namespace server {
......
......@@ -22,11 +22,6 @@
#include <unistd.h>
#endif
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.server.main"
#define STR_I(var) #var
#define STR(var) STR_I(var)
#ifndef DSN_BUILD_TYPE
......
......@@ -18,11 +18,6 @@
#include <fstream>
#endif
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.counter.updater"
using namespace ::dsn;
namespace pegasus {
......@@ -62,7 +57,7 @@ static void libevent_log(int severity, const char *msg)
level = LOG_LEVEL_WARNING;
else
level = LOG_LEVEL_ERROR;
dlog(level, __TITLE__, msg);
dlog(level, msg);
}
#if defined(__linux__)
......
......@@ -7,11 +7,6 @@
#include <atomic>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.perf.counter"
using namespace ::dsn;
using namespace ::dsn::tools;
......
......@@ -13,11 +13,6 @@
#include <boost/lexical_cast.hpp>
#include <algorithm>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.server.impl"
namespace pegasus {
namespace server {
......
......@@ -36,7 +36,7 @@ enable_default_app_mimic = true
data_dir = ./pegasus_shell.data
[tools.simple_logger]
short_header = true
short_header = false
fast_flush = true
max_number_of_log_files_on_disk = 10
stderr_start_level = LOG_LEVEL_FATAL
......
......@@ -12,11 +12,6 @@
#include <pegasus/client.h>
#include <gtest/gtest.h>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.main"
using namespace ::pegasus;
pegasus_client *client = nullptr;
......
......@@ -14,11 +14,6 @@
#include <gtest/gtest.h>
#include <atomic>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.basic"
using namespace ::pegasus;
extern pegasus_client *client;
......
......@@ -18,11 +18,6 @@
#include "utils.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.recall"
using namespace dsn::replication;
TEST(drop_and_recall, simple)
......
......@@ -18,11 +18,6 @@
#include "global_env.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.recovery"
using namespace dsn::replication;
class recovery_test : public testing::Test
......
......@@ -8,11 +8,6 @@
#include "global_env.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.restore"
using namespace ::dsn;
using namespace ::dsn::replication;
using namespace pegasus;
......
......@@ -12,11 +12,6 @@
#include <pegasus/client.h>
#include <gtest/gtest.h>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.scan"
using namespace ::pegasus;
extern pegasus_client *client;
......
......@@ -18,11 +18,6 @@
#include "global_env.h"
#include "utils.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "function.test.recall"
using namespace dsn::replication;
static const std::string table_for_lost_log = "table_for_lost_log";
......
......@@ -45,11 +45,6 @@ static const long stat_p999_pos = stat_batch - stat_batch / 1000 - 1;
static const long stat_p9999_pos = stat_batch - stat_batch / 10000 - 1;
static const long stat_max_pos = stat_batch - 1;
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.verifier"
// return time in us.
long get_time()
{
......
......@@ -4,11 +4,6 @@
#include "job.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "killtest.job"
namespace pegasus {
namespace test {
......
......@@ -8,11 +8,6 @@
#include "kill_testor.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "kill.testor"
namespace pegasus {
namespace test {
......
......@@ -10,11 +10,6 @@
#include <fstream>
#include <dsn/c/api_utilities.h>
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "killer.handler.shell"
namespace pegasus {
namespace test {
......
......@@ -21,11 +21,6 @@
#include "kill_testor.h"
#include "process_killer.h"
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.killer"
using namespace std;
using namespace ::pegasus;
using namespace ::pegasus::test;
......
......@@ -18,11 +18,6 @@
using namespace std;
using namespace ::pegasus;
#ifdef __TITLE__
#undef __TITLE__
#endif
#define __TITLE__ "pegasus.pressure.test"
DEFINE_TASK_CODE(LPC_DEFAUT_TASK, TASK_PRIORITY_COMMON, dsn::THREAD_POOL_DEFAULT)
//[min, max], min and max is unsigned
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册