Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 11:42:55 PM (13 years ago)
Author:
landauf
Message:

Removed debugLevel_ from Shell, using correct variable inherited from BaseWriter as config value.
Fixed OutputListener::setLevelMax() which ignored the new output level "message".
Fixed using a boolean called "verbose" instead of the output level with the same name in Loader.
Preventing further problems of this kind by defining OutputLevel as an enum.

Location:
code/branches/output/src/libraries/core/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/command/Shell.cc

    r8803 r8808  
    170170        if (isNormal)
    171171        {
    172             ModifyConfigValueExternal(debugLevel_, this->getConfigurableMaxLevelName(), update);
     172            ModifyConfigValueExternal(this->configurableMaxLevel_, this->getConfigurableMaxLevelName(), update);
    173173        }
    174174        else
    175175        {
    176176            OutputLevel level = (value ? DefaultLogLevel::Dev : DefaultLogLevel::User);
    177             ModifyConfigValueExternal(debugLevel_, this->getConfigurableMaxLevelName(), tset, level);
     177            ModifyConfigValueExternal(this->configurableMaxLevel_, this->getConfigurableMaxLevelName(), tset, level);
    178178        }
    179179    }
  • code/branches/output/src/libraries/core/command/Shell.h

    r8805 r8808  
    200200            unsigned int              historyOffset_;       ///< The command history is a circular buffer, this variable defines the current write-offset
    201201            std::vector<std::string>  commandHistory_;      ///< The history of commands that were entered by the user
    202             OutputLevel               debugLevel_;          //!< The maximum level of output that is displayed in the shell (will be passed to OutputListener to filter output)
    203202            static unsigned int       cacheSize_s;          ///< The maximum cache size of the CommandExecutor - this is stored here for better readability of the config file and because CommandExecutor is no OrxonoxClass
    204203    };
Note: See TracChangeset for help on using the changeset viewer.