Skip to content

Commit

Permalink
quickjs_backend: Log instance destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jul 7, 2024
1 parent dfcaae5 commit 6afc5b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quickjs_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ class quickjs_scripting_instance : public wzapi::scripting_instance
{
engineToInstanceMap.erase(ctx);

debug(LOG_INFO, "Destroying [%d]:%s/%s", player(), scriptPath().c_str(), scriptName().c_str());

if (!(JS_IsUninitialized(compiledScriptObj)))
{
JS_FreeValue(ctx, compiledScriptObj);
Expand Down

0 comments on commit 6afc5b8

Please sign in to comment.