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

[Issue] Silent flag doesn't work in SDK. Library too verbose #1199

Closed
ca5ua1 opened this issue Mar 26, 2024 · 0 comments · Fixed by #1200
Closed

[Issue] Silent flag doesn't work in SDK. Library too verbose #1199

ca5ua1 opened this issue Mar 26, 2024 · 0 comments · Fixed by #1200
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@ca5ua1
Copy link

ca5ua1 commented Mar 26, 2024

Describe the bug
When using subfinder as SDK - even with silent flag program write logs to terminal.

If you use https://github.com/projectdiscovery/subfinder/blob/dev/v2/examples/main.go and add Siilent: true, to options you still get unwanted log output

➤ go run main.go
[INF] Loading provider config from the default location: /home/casual/.config/subfinder/provider-config.yaml
[INF] Enumerating subdomains for DOMAIN
[INF] Found 18 subdomains for DOMAIN in 30 seconds 556 milliseconds

Adding log.SetOutput(io.Discard) doesn't help.
Same was at projectdiscovery/naabu#958 and still in projectdiscovery/katana#757

Subfinder version
v2.6.5

@dogancanbakir dogancanbakir self-assigned this Mar 26, 2024
@dogancanbakir dogancanbakir added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants