switch from json to text formatter for logger
This commit is contained in:
parent
e7225317d4
commit
64a33e910a
@ -5,4 +5,4 @@ RUN npm install -g postgraphile-plugin-connection-filter
|
||||
RUN npm install -g @graphile/pg-pubsub
|
||||
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["postgraphile", "-n", "0.0.0.0"]
|
||||
ENTRYPOINT ["postgraphile"]
|
@ -78,8 +78,8 @@ services:
|
||||
"--subscriptions",
|
||||
"--simple-subscriptions",
|
||||
"--connection", $DATABASE_URL,
|
||||
"--host", "0.0.0.0",
|
||||
"--port", "5000",
|
||||
"-n", "0.0.0.0"
|
||||
"--schema", "public,btc,eth"
|
||||
"--append-plugins", "postgraphile-plugin-connection-filter"]
|
||||
|
||||
|
7
main.go
7
main.go
@ -1,15 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/vulcanize/vulcanizedb/cmd"
|
||||
"os"
|
||||
|
||||
"github.com/vulcanize/vulcanizedb/cmd"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logrus.SetFormatter(&logrus.JSONFormatter{
|
||||
PrettyPrint: true,
|
||||
logrus.SetFormatter(&logrus.TextFormatter{
|
||||
FullTimestamp: true,
|
||||
})
|
||||
file, err := os.OpenFile("vulcanizedb.log",
|
||||
os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
||||
|
Loading…
Reference in New Issue
Block a user