comparison tests/src/plugins/logger/main.cpp @ 862:6b65493d97cf

plugin logger: rename path configuration to file, closes #1670
author David Demelier <markand@malikania.fr>
date Thu, 25 Jul 2019 21:10:00 +0000
parents a23b7b574ed2
children 5e25439fe98d
comparison
equal deleted inserted replaced
861:77004857505b 862:6b65493d97cf
63 }); 63 });
64 } 64 }
65 65
66 void load(plugin::map config = {}) 66 void load(plugin::map config = {})
67 { 67 {
68 if (config.count("path") == 0) 68 if (config.count("file") == 0)
69 config.emplace("path", CMAKE_CURRENT_BINARY_DIR "/log.txt"); 69 config.emplace("file", CMAKE_CURRENT_BINARY_DIR "/log.txt");
70 70
71 plugin_->set_options(config); 71 plugin_->set_options(config);
72 plugin_->handle_load(bot_); 72 plugin_->handle_load(bot_);
73 } 73 }
74 }; 74 };