Manuel Alejandro de Brito Fontes f25de2cdbf Log error changing default level
2021-09-22 10:15:47 -03:00

29 lines
673 B
Go

// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
package cmd
import (
"github.com/spf13/cobra"
common_grpc "github.com/gitpod-io/gitpod/common-go/grpc"
"github.com/gitpod-io/gitpod/common-go/log"
"github.com/gitpod-io/gitpod/supervisor/pkg/supervisor"
)
var runCmd = &cobra.Command{
Use: "run",
Short: "starts the supervisor",
Run: func(cmd *cobra.Command, args []string) {
log.Init(ServiceName, Version, true, false)
common_grpc.SetupLogging()
supervisor.Run()
},
}
func init() {
rootCmd.AddCommand(runCmd)
}