Skip to content

Commit

Permalink
full paths when logging event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Oct 2, 2023
1 parent 4b515ae commit e9aa103
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sources/libcore/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,7 @@ namespace cage
#ifdef CAGE_SYSTEM_WINDOWS
n = replace(n, "\\", "/");
#endif // CAGE_SYSTEM_WINDOWS

// extract just one folder and file name
n = reverse(n);
String a = split(n, "/");
if (!n.empty())
a += String() + "/" + split(n, "/");
a = reverse(a);

return s + a + ":" + l.line();
return s + n + ":" + l.line();
}

void EventLinker::logAllNames()
Expand Down

0 comments on commit e9aa103

Please sign in to comment.