From: <log...@li...> - 2016-10-16 19:54:40
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Log4cpp Git repository.". The branch, log4cpp-patch-45 has been created at 544f6a2c0e19c566abf39dab5a27201bff212d32 (commit) - Log ----------------------------------------------------------------- http://sourceforge.net/p/log4cpp/codegit/ci/ commit c209a977e66702678feda52cbf8b2125532d4799 Author: Alexander Perepelkin <san...@us...> Date: Tue Aug 2 22:43:45 2016 +0400 bug-141: conservative fix diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp index d9fec49..a8db7c9 100644 --- a/src/PropertyConfiguratorImpl.cpp +++ b/src/PropertyConfiguratorImpl.cpp @@ -166,7 +166,12 @@ namespace log4cpp { } } - category.setPriority(priority); + try { + category.setPriority(priority); + } catch (std::invalid_argument& e) { + throw ConfigureFailure(std::string(e.what()) + + " for category '" + categoryName + "'"); + } bool additive = _properties.getBool("additivity." + categoryName, true); category.setAdditivity(additive); ----------------------------------------------------------------------- hooks/post-receive -- Log4cpp Git repository. |