aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel.cpp
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-11 22:57:18 +0100
committerGitHub <noreply@github.com>2022-12-11 22:57:18 +0100
commit08c30b23cdda07fe5564030f8c55b9becc460566 (patch)
tree00c34a14fa6bb36caa4c7def8dae673eab16516b /NorthstarDLL/squirrel.cpp
parent013548a64babbf97b07e9c4436117f0da5c07e43 (diff)
downloadNorthstarLauncher-08c30b23cdda07fe5564030f8c55b9becc460566.tar.gz
NorthstarLauncher-08c30b23cdda07fe5564030f8c55b9becc460566.zip
Log function lookup failure on Call (#355)
* Log function lookup failure on Call * Formatting * Update squirrel.cpp * format
Diffstat (limited to 'NorthstarDLL/squirrel.cpp')
-rw-r--r--NorthstarDLL/squirrel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp
index a5733784..fb4e77c5 100644
--- a/NorthstarDLL/squirrel.cpp
+++ b/NorthstarDLL/squirrel.cpp
@@ -528,10 +528,8 @@ template <ScriptContext context> void SquirrelManager<context>::ProcessMessageBu
int result = sq_getfunction(m_pSQVM->sqvm, message.functionName.c_str(), &functionobj, 0);
if (result != 0) // This func returns 0 on success for some reason
{
- spdlog::error(
- "ProcessMessageBuffer was unable to find function with name '{}' on {}. Is it global?",
- message.functionName,
- GetContextName(context));
+ NS::log::squirrel_logger<context>()->error(
+ "ProcessMessageBuffer was unable to find function with name '{}'. Is it global?", message.functionName);
return;
}
pushobject(m_pSQVM->sqvm, &functionobj); // Push the function object