@@ -29,6 +29,7 @@ import (
2929 "github.com/containerd/containerd/log"
3030 "github.com/containerd/containerd/mount"
3131 "github.com/containerd/containerd/services/server"
32+ srvconfig "github.com/containerd/containerd/services/server/config"
3233 "github.com/containerd/containerd/sys"
3334 "github.com/containerd/containerd/version"
3435 "github.com/pkg/errors"
@@ -109,7 +110,7 @@ func App() *cli.App {
109110 // we don't miss any signals during boot
110111 signal .Notify (signals , handledSignals ... )
111112
112- if err := server .LoadConfig (context .GlobalString ("config" ), config ); err != nil && ! os .IsNotExist (err ) {
113+ if err := srvconfig .LoadConfig (context .GlobalString ("config" ), config ); err != nil && ! os .IsNotExist (err ) {
113114 return err
114115 }
115116 // apply flags to the config
@@ -187,7 +188,7 @@ func serve(ctx gocontext.Context, l net.Listener, serveFunc func(net.Listener) e
187188 }()
188189}
189190
190- func applyFlags (context * cli.Context , config * server .Config ) error {
191+ func applyFlags (context * cli.Context , config * srvconfig .Config ) error {
191192 // the order for config vs flag values is that flags will always override
192193 // the config values if they are set
193194 if err := setLevel (context , config ); err != nil {
@@ -217,7 +218,7 @@ func applyFlags(context *cli.Context, config *server.Config) error {
217218 return nil
218219}
219220
220- func setLevel (context * cli.Context , config * server .Config ) error {
221+ func setLevel (context * cli.Context , config * srvconfig .Config ) error {
221222 l := context .GlobalString ("log-level" )
222223 if l == "" {
223224 l = config .Debug .Level
0 commit comments