Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
4026c05b
Commit
4026c05b
authored
Aug 15, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(indexer): Remove logger config from config
parent
24a26fce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
22 deletions
+1
-22
cli.go
indexer/cli/cli.go
+1
-7
config.go
indexer/config/config.go
+0
-3
setup.go
indexer/e2e_tests/setup.go
+0
-4
indexer.toml
indexer/indexer.toml
+0
-8
No files found.
indexer/cli/cli.go
View file @
4026c05b
...
...
@@ -25,11 +25,7 @@ type Cli struct {
}
func
runIndexer
(
ctx
*
cli
.
Context
)
error
{
logger
:=
log
.
NewLogger
(
log
.
CLIConfig
{
Level
:
"warn"
,
Color
:
false
,
Format
:
"terminal"
,
})
logger
:=
log
.
NewLogger
(
log
.
ReadCLIConfig
(
ctx
))
configPath
:=
ctx
.
String
(
ConfigFlag
.
Name
)
cfg
,
err
:=
config
.
LoadConfig
(
logger
,
configPath
)
...
...
@@ -38,8 +34,6 @@ func runIndexer(ctx *cli.Context) error {
return
err
}
logger
=
log
.
NewLogger
(
cfg
.
Logger
)
db
,
err
:=
database
.
NewDB
(
cfg
.
DB
)
if
err
!=
nil
{
...
...
indexer/config/config.go
View file @
4026c05b
...
...
@@ -6,8 +6,6 @@ import (
"reflect"
"github.com/BurntSushi/toml"
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum/go-ethereum/common"
geth_log
"github.com/ethereum/go-ethereum/log"
"github.com/joho/godotenv"
...
...
@@ -22,7 +20,6 @@ type Config struct {
DB
DBConfig
API
APIConfig
Metrics
MetricsConfig
Logger
log
.
CLIConfig
}
// fetch this via onchain config from RPCsConfig and remove from config in future
...
...
indexer/e2e_tests/setup.go
View file @
4026c05b
...
...
@@ -16,7 +16,6 @@ import (
op_e2e
"github.com/ethereum-optimism/optimism/op-e2e"
"github.com/ethereum-optimism/optimism/op-node/testlog"
op_log
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -60,9 +59,6 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
// Indexer Configuration and Start
indexerCfg
:=
config
.
Config
{
Logger
:
op_log
.
CLIConfig
{
Level
:
"warn"
,
},
DB
:
config
.
DBConfig
{
Host
:
"127.0.0.1"
,
Port
:
5432
,
...
...
indexer/indexer.toml
View file @
4026c05b
...
...
@@ -22,11 +22,3 @@ port = 8080
host
=
"127.0.0.1"
port
=
7300
[logger]
# Log level: trace, debug, info, warn, error, crit. Capitals are accepted too.
level
=
"info"
# Color the log output. Defaults to true if terminal is detected.
color
=
true
# Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty'
format
=
"terminal"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment