mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 17:50:16 +01:00
ircd::db: Add logging mask for db subsys and improve handle opening messages.
This commit is contained in:
parent
34eae9a829
commit
3083bb8e62
3 changed files with 10 additions and 4 deletions
|
@ -139,6 +139,9 @@ struct init
|
|||
~init() noexcept;
|
||||
};
|
||||
|
||||
// db subsystem has its own SNOMASK'ed logging facility.
|
||||
extern struct log::log log;
|
||||
|
||||
} // namespace db
|
||||
} // namespace ircd
|
||||
|
||||
|
|
|
@ -83,7 +83,6 @@ namespace ircd
|
|||
#include "fmt.h"
|
||||
#include "err.h"
|
||||
#include "fs.h"
|
||||
#include "db.h"
|
||||
#include "s_assert.h"
|
||||
#include "match.h"
|
||||
#include "mode_table.h"
|
||||
|
@ -98,18 +97,17 @@ namespace ircd
|
|||
#include "ctx_async.h"
|
||||
#include "ctx_pool.h"
|
||||
#include "hook.h"
|
||||
|
||||
#include "line.h"
|
||||
#include "tape.h"
|
||||
#include "cmds.h"
|
||||
#include "vm.h"
|
||||
#include "logger.h"
|
||||
#include "db.h"
|
||||
|
||||
#include "u_id.h"
|
||||
|
||||
#include "client.h"
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
#include "newconf.h"
|
||||
#include "conf.h"
|
||||
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
namespace ircd {
|
||||
namespace db {
|
||||
|
||||
struct log::log log
|
||||
{
|
||||
"db", 'D' // Database subsystem takes SNOMASK +D
|
||||
};
|
||||
|
||||
void throw_on_error(const rocksdb::Status &);
|
||||
|
||||
rocksdb::WriteOptions make_opts(const sopts &);
|
||||
|
|
Loading…
Add table
Reference in a new issue