mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: log agent cfg with field names (#829)
This commit is contained in:
committed by
Reed Allman
parent
b2fc5243ee
commit
f85294b0fc
@@ -121,9 +121,9 @@ func NewSyncOnly(da DataAccess) Agent {
|
||||
|
||||
cfg, err := NewAgentConfig()
|
||||
if err != nil {
|
||||
logrus.WithField("cfg", cfg).WithError(err).Fatal("error in agent config")
|
||||
logrus.WithError(err).Fatalf("error in agent config cfg=%+v", cfg)
|
||||
}
|
||||
logrus.WithField("cfg", cfg).Info("agent starting")
|
||||
logrus.Infof("agent starting cfg=%+v", cfg)
|
||||
|
||||
// TODO: Create drivers.New(runnerConfig)
|
||||
driver := docker.NewDocker(drivers.Config{
|
||||
|
||||
Reference in New Issue
Block a user