mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
set default mdbx log level to warning (#1912)
This commit is contained in:
parent
a99d22c313
commit
921c6a53c9
@ -92,7 +92,7 @@ func withDatadir2(cmd *cobra.Command) {
|
|||||||
must(cmd.MarkFlagDirname(utils.DataDirFlag.Name))
|
must(cmd.MarkFlagDirname(utils.DataDirFlag.Name))
|
||||||
must(cmd.MarkFlagRequired(utils.DataDirFlag.Name))
|
must(cmd.MarkFlagRequired(utils.DataDirFlag.Name))
|
||||||
cmd.Flags().StringVar(&database, "database", "", "lmdb|mdbx")
|
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) {
|
func withDatadir(cmd *cobra.Command) {
|
||||||
@ -108,7 +108,7 @@ func withDatadir(cmd *cobra.Command) {
|
|||||||
must(cmd.MarkFlagDirname("snapshot.dir"))
|
must(cmd.MarkFlagDirname("snapshot.dir"))
|
||||||
|
|
||||||
cmd.Flags().StringVar(&database, "database", "", "lmdb|mdbx")
|
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) {
|
func withBatchSize(cmd *cobra.Command) {
|
||||||
|
@ -24,8 +24,8 @@ var (
|
|||||||
}
|
}
|
||||||
DatabaseVerbosityFlag = cli.IntFlag{
|
DatabaseVerbosityFlag = cli.IntFlag{
|
||||||
Name: "database.verbosity",
|
Name: "database.verbosity",
|
||||||
Usage: "Enabling internal db logs. Very high verbosity levels may require recompile db.",
|
Usage: "Enabling internal db logs. Very high verbosity levels may require recompile db. Default: 2, means warning.",
|
||||||
Value: -1,
|
Value: 2,
|
||||||
}
|
}
|
||||||
BatchSizeFlag = cli.StringFlag{
|
BatchSizeFlag = cli.StringFlag{
|
||||||
Name: "batchSize",
|
Name: "batchSize",
|
||||||
|
Loading…
Reference in New Issue
Block a user