mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-19 12:36:38 +00:00
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:
committed by
Alex Ellis
parent
cddc10acbe
commit
faae82aa1c
@ -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{}
|
||||
|
Reference in New Issue
Block a user