Fix a wrong pop_sub.
Description
Fix a wrong pop_sub.
News snippet
Fix some internal debug information.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.