Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user, I want to see when my custom job prints to stdout, even if not in the expected findings format #188

Open
lm-sec opened this issue Dec 9, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@lm-sec
Copy link
Collaborator

lm-sec commented Dec 9, 2023

This would allow a finding developper to simply print to stdout to see output in the front-end. It would greatly help with debugging and overall confidence of execution

@lm-sec lm-sec added the good first issue Good for newcomers label Dec 9, 2023
@lm-sec
Copy link
Collaborator Author

lm-sec commented Mar 21, 2024

Not easily possible anymore with the new way of reporting issues through HTTP requests. However, we could potentially replace the print built-in function with our own that calls log_debug.

https://sethdandridge.com/blog/redefining-pythons-print-function

PoC:

import builtins

def newprint(*args):
  builtins.oldprint('print is newprint')

builtins.oldprint = builtins.print
builtins.print = newprint

print('print is the standard print')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant