Move core services logs to the journal

Logs can now be viewed with the following, adding -f to follow
the logs.

journalctl -t default:gateway

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2020-09-18 12:17:19 +01:00
committed by Alex Ellis
parent cddc10acbe
commit faae82aa1c
3 changed files with 5 additions and 6 deletions

View File

@ -180,10 +180,10 @@ func (s *Supervisor) Start(svcs []Service) error {
log.Printf("Created container: %s\n", newContainer.ID())
task, err := newContainer.NewTask(ctx, cio.NewCreator(cio.WithStdio))
if err != nil {
task, taskErr := newContainer.NewTask(ctx, cio.BinaryIO("/usr/local/bin/faasd", nil))
if taskErr != nil {
log.Printf("Error creating task: %s\n", err)
return err
return taskErr
}
labels := map[string]string{}