Not sure what the issue is?
It seems you expect debug data in the release build ?
Note that the “<unknown>” is just telling you it cannot reverse hash that value into a debug string.
You can printout the individual hashes if you want to:
io.stderr:write(string.format(“URL: %s (%s, %s, %s) is_debug: %s\n”, u, u.socket, u.path, u.fragment, sys.get_engine_info().is_debug))
Here’s an example where I printed out from “build and run” which is in debug mode, and from a release bundle:
URL: url: [main:/go#main] (hash: [main], hash: [/go], hash: [main]) is_debug: true
URL: url: [main:<unknown>#<unknown>] (hash: [17296653182486628446 (unknown)], hash: [2403139543084994936 (unknown)], hash: [17296653182486628446 (unknown)]) is_debug: false
As you can see, the url still contains hashes in the release mode. Which is the actual value, not the string.
I think it’s better to see some code to better grasp what you are trying to do, and potentially see why it doesn’t work.