Skip to content

Commit 1e2fb8a

Browse files
committed
fix
1 parent 7ad6978 commit 1e2fb8a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pyWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PyWrapper::PyWrapper() {
132132
_wrapperTest = _obj.attr("wrapperTestFunc");
133133

134134
py::gil_scoped_release release;
135-
StartMonitorWrapperClass(_wrapper_abs);
135+
//StartMonitorWrapperClass(_wrapper_abs);
136136

137137
}
138138

wrapper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void initlog(std::string logDir, std::string logpath) {
6868
printf("log目录已创建, %s \n", logpath);
6969
}
7070
auto file_logger = spdlog::rotating_logger_mt("mspper", logpath.c_str(), 1048576 * 10, 50);
71+
file_logger->flush_on(spdlog::level::debug);
7172
// Console logger
7273
auto console_logger = spdlog::stdout_color_mt("stdout_console");
7374
auto err_logger = spdlog::stderr_color_mt("stderr_console");
@@ -93,7 +94,7 @@ int WrapperAPI wrapperInit(pConfig cfg) {
9394
int ret = 0;
9495
init_threads();
9596
std::string logDir = std::string("./log/server");
96-
std::string logPath = std::string("./log/server/wrapper.log");
97+
std::string logPath = std::string("./log/server/c_wrapper.log");
9798
std::string loglvl = "debug";
9899
std::map <std::string, std::string> config;
99100

@@ -106,7 +107,7 @@ int WrapperAPI wrapperInit(pConfig cfg) {
106107
}
107108
if (std::string("log.dir") == std::string(p->key)) {
108109
logDir = p->value;
109-
logPath = std::string(p->value) + std::string("/wrapper.log");
110+
logPath = std::string(p->value) + std::string("/c_wrapper.log");
110111
continue;
111112
}
112113
}

0 commit comments

Comments
 (0)