summaryrefslogtreecommitdiff
path: root/louloulibs/utils/reload.cpp
blob: bddfd86013b6d8580560ea44a9f3f307facaea94 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <config/config.hpp>
#include <logger/logger.hpp>

void reload_process()
{
  Config::read_conf();
  // Destroy the logger instance, to be recreated the next time a log
  // line needs to be written
  Logger::instance().reset();
  log_debug("Configuration and logger reloaded.");
}