This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20602

Summary: ErrorManager.log(INFORMATIONAL...) does nothing
Product: platform Reporter: David Simonek <dsimonek>
Component: -- Other --Assignee: David Strupl <dstrupl>
Status: CLOSED WONTFIX    
Severity: blocker CC: ttran
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 20026    

Description David Simonek 2002-02-15 16:02:49 UTC
Call is simply ignored for INFORMATIONAL severity. To reproduce, check usage in
UIModeManager.logStartMode method.
Comment 1 _ ttran 2002-02-16 13:26:38 UTC
Davide, NbErrorManager is another candidate for "refactoring" (total
rewrite, I am serious).  In the beginning of the file there is

    /** Minimum value of severity to write message to the log file*/
    private int minLogSeverity = ErrorManager.INFORMATIONAL; // NOI18N

but later in the same file

    public boolean isLoggable (int severity) {
        // logging severity is more important - by default INFORMATIONAL
        // messages are not logged
        severity = severity >> 1;
        return severity >= minLogSeverity;
    }
Comment 2 David Strupl 2002-02-20 16:24:02 UTC
I am sorry but I don't think that changing the behaviour now is a good
idea. there might be modules that use this severity already and we
could cause a huge amount of log messages from those modules.

Workaround: use different severity for logging.

Note: please note that there may be other impls of ErrorManager so
putting informational can make sense for someone who don't want our
NbErrorManager to do anything but his/her ErrorManager to e.g.
selectively log messages with this severity.
Comment 3 Quality Engineering 2003-07-01 15:46:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 4 Quality Engineering 2003-07-01 16:34:09 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.