forked from cerc-io/ipld-eth-server
5eff2618ed
- Remove DataDog - Remove token_supply table - Drop from more tables when cleaning DB for tests
22 lines
379 B
Go
22 lines
379 B
Go
package main
|
|
|
|
import (
|
|
"github.com/vulcanize/vulcanizedb/cmd"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
log.SetFormatter(&log.JSONFormatter{})
|
|
file, err := os.OpenFile("vulcanizedb.log",
|
|
os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
|
if err == nil {
|
|
log.SetOutput(file)
|
|
} else {
|
|
log.Info("Failed to log to file, using default stderr")
|
|
}
|
|
|
|
cmd.Execute()
|
|
}
|