set default mdbx log level to warning (#1912)

This commit is contained in:
Alex Sharov 2021-05-11 15:22:34 +07:00 committed by GitHub
parent a99d22c313
commit 921c6a53c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ func withDatadir2(cmd *cobra.Command) {
must(cmd.MarkFlagDirname(utils.DataDirFlag.Name))
must(cmd.MarkFlagRequired(utils.DataDirFlag.Name))
cmd.Flags().StringVar(&database, "database", "", "lmdb|mdbx")
cmd.Flags().IntVar(&databaseVerbosity, "database.verbosity", -1, "Enabling internal db logs. Very high verbosity levels may require recompile db.")
cmd.Flags().IntVar(&databaseVerbosity, "database.verbosity", 2, "Enabling internal db logs. Very high verbosity levels may require recompile db. Default: 2, means warning.")
}
func withDatadir(cmd *cobra.Command) {
@ -108,7 +108,7 @@ func withDatadir(cmd *cobra.Command) {
must(cmd.MarkFlagDirname("snapshot.dir"))
cmd.Flags().StringVar(&database, "database", "", "lmdb|mdbx")
cmd.Flags().IntVar(&databaseVerbosity, "database.verbosity", -1, "Enabling internal db logs. Very high verbosity levels may require recompile db.")
cmd.Flags().IntVar(&databaseVerbosity, "database.verbosity", 2, "Enabling internal db logs. Very high verbosity levels may require recompile db. Default: 2, means warning")
}
func withBatchSize(cmd *cobra.Command) {

View File

@ -24,8 +24,8 @@ var (
}
DatabaseVerbosityFlag = cli.IntFlag{
Name: "database.verbosity",
Usage: "Enabling internal db logs. Very high verbosity levels may require recompile db.",
Value: -1,
Usage: "Enabling internal db logs. Very high verbosity levels may require recompile db. Default: 2, means warning.",
Value: 2,
}
BatchSizeFlag = cli.StringFlag{
Name: "batchSize",