@@ -114,7 +114,7 @@ void LoadMain() {
114
114
#ifdef LLSE_BACKEND_NODEJS
115
115
// NodeJs后端 - 主加载
116
116
void LoadMain_NodeJs () {
117
- logger.info (tr (" llse.loader.loadMain.start" , fmt::arg (" type" , " Node.js" )));
117
+ // logger.info(tr("llse.loader.loadMain.start", fmt::arg("type", "Node.js")));
118
118
int installCount = 0 ;
119
119
int count = 0 ;
120
120
@@ -131,7 +131,7 @@ void LoadMain_NodeJs() {
131
131
}
132
132
} catch (...) {}
133
133
} else {
134
- logger.warn (tr (" llse.loader.loadMain.nodejs.ignored" , fmt::arg (" path" , targetDirStr)));
134
+ // logger.warn(tr("llse.loader.loadMain.nodejs.ignored", fmt::arg("path", targetDirStr)));
135
135
}
136
136
}
137
137
}
@@ -143,28 +143,28 @@ void LoadMain_NodeJs() {
143
143
std::filesystem::path pth = i.path ();
144
144
std::string packFilePathStr = ll::string_utils::u8str2str (pth.make_preferred ().u8string ());
145
145
if (i.is_regular_file () && packFilePathStr.ends_with (LLSE_PLUGIN_PACKAGE_EXTENSION)) {
146
- logger.info (tr (" llse.loader.loadMain.nodejs.installPack.start" , fmt::arg (" path" , packFilePathStr)));
146
+ // logger.info(tr("llse.loader.loadMain.nodejs.installPack.start", fmt::arg("path", packFilePathStr)));
147
147
try {
148
148
if (!PluginManager::loadPlugin (packFilePathStr, false , true )) {
149
- logger.error (tr (" llse.loader.loadMain.nodejs.installPack.fail" , packFilePathStr));
149
+ // logger.error(tr("llse.loader.loadMain.nodejs.installPack.fail", packFilePathStr));
150
150
}
151
151
++count;
152
152
++installCount;
153
153
} catch (...) {
154
154
// not matched backend type
155
- logger.warn (tr (" llse.loader.loadMain.nodejs.ignored" , fmt::arg (" path" , packFilePathStr)));
155
+ // logger.warn(tr("llse.loader.loadMain.nodejs.ignored", fmt::arg("path", packFilePathStr)));
156
156
}
157
157
}
158
158
}
159
159
160
- logger.info (tr (" llse.loader.loadMain.done" , fmt::arg (" count" , count), fmt::arg (" type" , " Node.js" )));
160
+ // logger.info(tr("llse.loader.loadMain.done", fmt::arg("count", count), fmt::arg("type", "Node.js")));
161
161
}
162
162
#endif
163
163
164
164
#ifdef LLSE_BACKEND_PYTHON
165
165
// Python后端 - 主加载
166
166
void LoadMain_Python () {
167
- logger.info (tr (" llse.loader.loadMain.start" , fmt::arg (" type" , " Python" )));
167
+ // logger.info(tr("llse.loader.loadMain.start", fmt::arg("type", "Python")));
168
168
int installCount = 0 ;
169
169
int count = 0 ;
170
170
@@ -181,7 +181,7 @@ void LoadMain_Python() {
181
181
}
182
182
} catch (...) {}
183
183
} else {
184
- logger.warn (tr (" llse.loader.loadMain.python.ignored" , fmt::arg (" path" , targetDirStr)));
184
+ // logger.warn(tr("llse.loader.loadMain.python.ignored", fmt::arg("path", targetDirStr)));
185
185
}
186
186
}
187
187
}
@@ -193,16 +193,16 @@ void LoadMain_Python() {
193
193
std::filesystem::path pth = i.path ();
194
194
std::string packFilePathStr = ll::string_utils::u8str2str (pth.make_preferred ().u8string ());
195
195
if (i.is_regular_file () && packFilePathStr.ends_with (LLSE_PLUGIN_PACKAGE_EXTENSION)) {
196
- logger.info (tr (" llse.loader.loadMain.python.installPack.start" , fmt::arg (" path" , packFilePathStr)));
196
+ // logger.info(tr("llse.loader.loadMain.python.installPack.start", fmt::arg("path", packFilePathStr)));
197
197
try {
198
198
if (!PluginManager::loadPlugin (packFilePathStr, false , true )) {
199
- logger.error (tr (" llse.loader.loadMain.python.installPack.fail" , packFilePathStr));
199
+ // logger.error(tr("llse.loader.loadMain.python.installPack.fail", packFilePathStr));
200
200
}
201
201
++count;
202
202
++installCount;
203
203
} catch (...) {
204
204
// not matched backend type
205
- logger.warn (tr (" llse.loader.loadMain.python.ignored" , packFilePathStr));
205
+ // logger.warn(tr("llse.loader.loadMain.python.ignored", packFilePathStr));
206
206
}
207
207
}
208
208
}
@@ -218,7 +218,7 @@ void LoadMain_Python() {
218
218
}
219
219
}
220
220
221
- logger.info (tr (" llse.loader.loadMain.done" , fmt::arg (" count" , count), fmt::arg (" type" , " Python" )));
221
+ // logger.info(tr("llse.loader.loadMain.done", fmt::arg("count", count), fmt::arg("type", "Python")));
222
222
}
223
223
#endif
224
224
@@ -232,4 +232,4 @@ void LoadMain_Package() {
232
232
LoadMain_Python ();
233
233
return ;
234
234
#endif
235
- }
235
+ }
0 commit comments