Skip to content

Commit e3a6db7

Browse files
committed
fix: fix log bug
1 parent bf536e0 commit e3a6db7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ int WrapperAPI wrapperSetCtrl(CtrlType type, void *func) {
8484
int WrapperAPI wrapperInit(pConfig cfg) {
8585
int ret = 0;
8686
init_threads();
87-
pyWrapper = new PyWrapper();
8887
std::string logDir = std::string("./log/server");
8988
std::string logPath = std::string("./log/server/wrapper.log");
9089
std::string loglvl = "debug";
@@ -106,6 +105,7 @@ int WrapperAPI wrapperInit(pConfig cfg) {
106105
}
107106

108107
initlog(logDir, logPath);
108+
pyWrapper = new PyWrapper();
109109

110110
setLog(loglvl);
111111
printf("WrapperInit: 当前线程ID: %d \n", gettid());

0 commit comments

Comments
 (0)