Skip to content

A Fix Script to Scan and check for the log statements #160

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

Conversation

maheshkhatal27
Copy link

The script detects various log statements that should not be used in a production environment, such as gs.log, gs.debug, and others. It returns the line numbers where such statements are found. This allows you to scan scripts in any table, whether it’s in a background script, script include, or other areas. The script is robust and scalable, enabling you to scan any table by simply providing the table name and sys_id. Ensure that the correct backend field name for the script (e.g., script field) is specified. The array of log statements can be easily customized to include or exclude specific log types. The result is an array of line numbers where the specified log statements are used.

…og, gs.debug etc. in production environment which is against the best practices. The Fix script 'Scan for log statements' returns the line numbers where such statements have been used. The script is scalable and can be used to scan any table, or add any statement type in future.
@SapphicFire SapphicFire self-assigned this Oct 22, 2024
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. However, this submission is not relevant to this repository. We encourage contributors to review the project's objectives and guidelines (see the README.md and CONTRIBUTING.md files) before submitting pull requests. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.

This is not an Instance Scan

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

Successfully merging this pull request may close these issues.

2 participants