Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[New API] Disable "E_NOTICE" log

Comments in 'Plugin Development' started by Adaasi, Sep 10, 2014.

  1. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    How can I disable "E_NOTICE" log (if it's possible)?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You want to disable it when the user loads it or just hide it when you are testing?

    Note that if you have an E_NOTICE level warning, it is most likely you did something wrong. What is it? And if you want to silent it when the user uses it, add the @ silence operator at the place the error occurred, and if you just want to hide the warning completely (do not add this line in production) add this line:
    PHP:
    error_reporting(E_ALL & ~E_NOTICE);
    LDX and Adaasi like this.
  3. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78

Share This Page

Advertisement