Code Monkey home page Code Monkey logo

Comments (2)

jeremiahjstacey avatar jeremiahjstacey commented on June 24, 2024

You can set the optional system property -Dorg.owasp.esapi.logSpecial.discard=true as part of your JVM startup. Setting this value disables the output in question.

Source Code References
https://github.com/ESAPI/esapi-java-legacy/blob/develop/src/main/java/org/owasp/esapi/PropNames.java line 128
https://github.com/ESAPI/esapi-java-legacy/blob/develop/src/main/java/org/owasp/esapi/reference/DefaultSecurityConfiguration.java lines 269 - 281 and 884 - 903

from esapi-java-legacy.

kwwall avatar kwwall commented on June 24, 2024

Closed, as this as it is a duplicate of issue #500. You already can be disabled by setting the system property org.owasp.esapi.logSpecial.discard to 'true' before your application starts up; e.g.,

$ java -Dorg.owasp.esapi.logSpecial.discard=true ...

Unfortunately, it is important to leave this so that it defaults to 'false', otherwise the ESAPI team would spend way too much time answer questions about why ESAPI can't find its ESAPI.properties file. It is annoying once you get it working, but it is very helpful if you can't figure out why it is failing.

Admittedly, it's a bit obtuse as to where it's documented in the Javadoc. Apologies for that; we could to better. I've been meaning to add a FAQ to our GitHub wiki pages and add it there, and I have even considered adding something like:

To suppress these ESAPI start-up configuration messages, consider running as:
    java -Dorg.owasp.esapi.logSpecial.discard=true ...

but of course, to some, that would just add more needless noise and probably lots of people wouldn't notice it anyway.

Even though we're closing this, if someone thinks that ESAPI should emit a message similar to the hypothetical one mentioned above, feel free to create a new enhancement GitHub ticket.

from esapi-java-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.