From a612557fe7f5b42956adf12a75eea4493d4b8f15 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Wed, 4 Mar 2020 17:30:52 +0100 Subject: [PATCH] Add log file (#4999) --- beacon-chain/state/stategen/BUILD.bazel | 2 ++ beacon-chain/state/stategen/log.go | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 beacon-chain/state/stategen/log.go diff --git a/beacon-chain/state/stategen/BUILD.bazel b/beacon-chain/state/stategen/BUILD.bazel index a6edb65be..1f4a709f0 100644 --- a/beacon-chain/state/stategen/BUILD.bazel +++ b/beacon-chain/state/stategen/BUILD.bazel @@ -4,6 +4,7 @@ go_library( name = "go_default_library", srcs = [ "epoch_boundary_root.go", + "log.go", "replay.go", "service.go", ], @@ -18,6 +19,7 @@ go_library( "//shared/featureconfig:go_default_library", "@com_github_pkg_errors//:go_default_library", "@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library", + "@com_github_sirupsen_logrus//:go_default_library", "@io_opencensus_go//trace:go_default_library", ], ) diff --git a/beacon-chain/state/stategen/log.go b/beacon-chain/state/stategen/log.go new file mode 100644 index 000000000..94b427d5a --- /dev/null +++ b/beacon-chain/state/stategen/log.go @@ -0,0 +1,5 @@ +package stategen + +import "github.com/sirupsen/logrus" + +var log = logrus.WithField("prefix", "state-gen") \ No newline at end of file