mirror of
https://github.com/oatpp/oatpp-swagger.git
synced 2024-11-21 03:12:00 +08:00
updated to oatpp veraion 0.19.4
This commit is contained in:
parent
656e6a8541
commit
ff148d5391
@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
||||
## use these variables to configure module installation
|
||||
|
||||
set(OATPP_THIS_MODULE_NAME oatpp-swagger) ## name of the module (also name of folders in installation dirs)
|
||||
set(OATPP_THIS_MODULE_VERSION "0.19.1") ## version of the module (also sufix of folders in installation dirs)
|
||||
set(OATPP_THIS_MODULE_VERSION "0.19.4") ## version of the module (also sufix of folders in installation dirs)
|
||||
set(OATPP_THIS_MODULE_LIBRARIES oatpp-swagger) ## list of libraries to find when find_package is called
|
||||
set(OATPP_THIS_MODULE_TARGETS oatpp-swagger) ## list of targets to install
|
||||
set(OATPP_THIS_MODULE_DIRECTORIES oatpp-swagger) ## list of directories to install
|
||||
|
@ -11,15 +11,11 @@
|
||||
|
||||
class Logger : public oatpp::base::Logger {
|
||||
private:
|
||||
oatpp::concurrency::SpinLock::Atom m_atom;
|
||||
oatpp::concurrency::SpinLock m_lock;
|
||||
public:
|
||||
|
||||
Logger()
|
||||
: m_atom(false)
|
||||
{}
|
||||
|
||||
void log(v_int32 priority, const std::string& tag, const std::string& message) override {
|
||||
oatpp::concurrency::SpinLock lock(m_atom);
|
||||
std::lock_guard<oatpp::concurrency::SpinLock> lock(m_lock);
|
||||
std::cout << tag << ":" << message << "\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user