Initialise logger

This commit is contained in:
Eelco Dolstra 2017-04-12 14:52:49 +02:00
parent 16c4856027
commit 31cc9366fc
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
3 changed files with 1 additions and 4 deletions

View File

@ -25,7 +25,6 @@ static ref<Store> store()
static std::shared_ptr<Store> _store;
if (!_store) {
try {
logger = makeDefaultLogger();
settings.loadConfFile();
settings.update();
settings.lockCPU = false;

View File

@ -106,8 +106,6 @@ void initNix()
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
#endif
logger = makeDefaultLogger();
/* Initialise OpenSSL locking. */
opensslLocks = std::vector<std::mutex>(CRYPTO_num_locks());
CRYPTO_set_locking_callback(opensslLockCallback);

View File

@ -3,7 +3,7 @@
namespace nix {
Logger * logger = 0;
Logger * logger = makeDefaultLogger();
class SimpleLogger : public Logger
{