diff options
author | Vincent Ambo <tazjin@google.com> | 2019-10-04T21·17+0100 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2019-10-06T22·05+0100 |
commit | f4bf3518f63501ddff42592b255fd5feaf846863 (patch) | |
tree | fcd731e62f3829f2952a40749bea87da76ee7665 /tools/nixery/server/config | |
parent | d9b329ef59e35ae6070eae867cf06a5230ae3d51 (diff) |
refactor(server): Replace log calls with logrus
This introduces a structured logging library that can be used (next step) to attach additional metadata to log entries.
Diffstat (limited to 'tools/nixery/server/config')
-rw-r--r-- | tools/nixery/server/config/config.go | 2 | ||||
-rw-r--r-- | tools/nixery/server/config/pkgsource.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/nixery/server/config/config.go b/tools/nixery/server/config/config.go index 84c2b89d13d0..abc067855a88 100644 --- a/tools/nixery/server/config/config.go +++ b/tools/nixery/server/config/config.go @@ -19,10 +19,10 @@ package config import ( "io/ioutil" - "log" "os" "cloud.google.com/go/storage" + log "github.com/sirupsen/logrus" ) // Load (optional) GCS bucket signing data from the GCS_SIGNING_KEY and diff --git a/tools/nixery/server/config/pkgsource.go b/tools/nixery/server/config/pkgsource.go index 61bea33dfe62..98719ecceabb 100644 --- a/tools/nixery/server/config/pkgsource.go +++ b/tools/nixery/server/config/pkgsource.go @@ -17,10 +17,11 @@ import ( "crypto/sha1" "encoding/json" "fmt" - "log" "os" "regexp" "strings" + + log "github.com/sirupsen/logrus" ) // PkgSource represents the source from which the Nix package set used |