Skip to content

Commit 25f8a21

Browse files
committed
Use 'main()' as default transaction name
1 parent a5f4347 commit 25f8a21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/Router.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ public function route(Pair &$redirect = null) {
177177
$pathArray = $this->getRequestPathArray();
178178
$path = (isset($pathArray[1]) ? $pathArray[1] : null);
179179
$subpath = (isset($pathArray[2]) ? $pathArray[2] : null);
180+
$fullpath = $path . (!empty($subpath) ? "/" . $subpath : "");
180181
Logger::setTransactionName(
181-
$path . (isset($subpath) ? "/" . $subpath : "")
182+
$fullpath ? $fullpath : "main()"
182183
);
183184

184185
if (Common::checkIfBlizzard()) {

0 commit comments

Comments
 (0)