Initialise logger
This commit is contained in:
parent
16c4856027
commit
31cc9366fc
3 changed files with 1 additions and 4 deletions
|
@ -25,7 +25,6 @@ static ref<Store> store()
|
||||||
static std::shared_ptr<Store> _store;
|
static std::shared_ptr<Store> _store;
|
||||||
if (!_store) {
|
if (!_store) {
|
||||||
try {
|
try {
|
||||||
logger = makeDefaultLogger();
|
|
||||||
settings.loadConfFile();
|
settings.loadConfFile();
|
||||||
settings.update();
|
settings.update();
|
||||||
settings.lockCPU = false;
|
settings.lockCPU = false;
|
||||||
|
|
|
@ -106,8 +106,6 @@ void initNix()
|
||||||
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
logger = makeDefaultLogger();
|
|
||||||
|
|
||||||
/* Initialise OpenSSL locking. */
|
/* Initialise OpenSSL locking. */
|
||||||
opensslLocks = std::vector<std::mutex>(CRYPTO_num_locks());
|
opensslLocks = std::vector<std::mutex>(CRYPTO_num_locks());
|
||||||
CRYPTO_set_locking_callback(opensslLockCallback);
|
CRYPTO_set_locking_callback(opensslLockCallback);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
Logger * logger = 0;
|
Logger * logger = makeDefaultLogger();
|
||||||
|
|
||||||
class SimpleLogger : public Logger
|
class SimpleLogger : public Logger
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue