Skip to content

Commit 55743a3

Browse files
committed
fix: fix compile
1 parent f8ba3c7 commit 55743a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/legacy/api/APIHelp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
6565
#define CATCH(LOG) \
6666
catch (const Exception& e) { \
6767
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
68-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
68+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
6969
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
7070
return Local<Value>(); \
7171
} \
@@ -100,7 +100,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
100100
#define CATCH_C(LOG) \
101101
catch (const Exception& e) { \
102102
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
103-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
103+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
104104
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
105105
return nullptr; \
106106
} \
@@ -114,7 +114,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
114114
#define CATCH_S(LOG) \
115115
catch (const Exception& e) { \
116116
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
117-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
117+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
118118
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
119119
return; \
120120
} \
@@ -128,7 +128,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
128128
#define CATCH_WITHOUT_RETURN(LOG) \
129129
catch (const Exception& e) { \
130130
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
131-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
131+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
132132
LOG_ERROR_WITH_SCRIPT_INFO(__FUNCTION__, LOG); \
133133
} \
134134
catch (...) { \
@@ -140,7 +140,7 @@ inline void LOG_WRONG_ARGS_COUNT(std::string const& func = "") {
140140
#define CATCH_IN_CALLBACK(callback) \
141141
catch (const Exception& e) { \
142142
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger()); \
143-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger("Stacktrace: {0}", e.stacktrace()); \
143+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Stacktrace: {0}", e.stacktrace()); \
144144
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error( \
145145
std::string("In callback for ") + callback \
146146
); \

0 commit comments

Comments
 (0)