@@ -24,7 +24,6 @@ import (
24
24
"github.com/arduino/arduino-cli/arduino/sketch"
25
25
"github.com/arduino/arduino-cli/i18n"
26
26
"github.com/arduino/arduino-cli/legacy/builder/builder_utils"
27
- "github.com/arduino/arduino-cli/legacy/builder/constants"
28
27
"github.com/arduino/arduino-cli/legacy/builder/phases"
29
28
"github.com/arduino/arduino-cli/legacy/builder/types"
30
29
"github.com/arduino/arduino-cli/legacy/builder/utils"
@@ -59,31 +58,31 @@ func (s *Builder) Run(ctx *types.Context) error {
59
58
60
59
& ContainerMergeCopySketchFiles {},
61
60
62
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Detecting libraries used..." )),
61
+ utils .LogIfVerbose ("info" , tr ("Detecting libraries used..." )),
63
62
& ContainerFindIncludes {},
64
63
65
64
& WarnAboutArchIncompatibleLibraries {},
66
65
67
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Generating function prototypes..." )),
66
+ utils .LogIfVerbose ("info" , tr ("Generating function prototypes..." )),
68
67
& PreprocessSketch {},
69
68
70
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Compiling sketch..." )),
69
+ utils .LogIfVerbose ("info" , tr ("Compiling sketch..." )),
71
70
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.prebuild" , Suffix : ".pattern" },
72
71
& phases.SketchBuilder {},
73
72
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.postbuild" , Suffix : ".pattern" },
74
73
75
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Compiling libraries..." )),
74
+ utils .LogIfVerbose ("info" , tr ("Compiling libraries..." )),
76
75
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.prebuild" , Suffix : ".pattern" },
77
76
& UnusedCompiledLibrariesRemover {},
78
77
& phases.LibrariesBuilder {},
79
78
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.postbuild" , Suffix : ".pattern" },
80
79
81
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Compiling core..." )),
80
+ utils .LogIfVerbose ("info" , tr ("Compiling core..." )),
82
81
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.prebuild" , Suffix : ".pattern" },
83
82
& phases.CoreBuilder {},
84
83
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.postbuild" , Suffix : ".pattern" },
85
84
86
- utils .LogIfVerbose (constants . LOG_LEVEL_INFO , tr ("Linking everything together..." )),
85
+ utils .LogIfVerbose ("info" , tr ("Linking everything together..." )),
87
86
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.prelink" , Suffix : ".pattern" },
88
87
& phases.Linker {},
89
88
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.postlink" , Suffix : ".pattern" },
@@ -203,7 +202,7 @@ func runCommands(ctx *types.Context, commands []types.Command) error {
203
202
204
203
func PrintRingNameIfDebug (ctx * types.Context , command types.Command ) {
205
204
if ctx .DebugLevel >= 10 {
206
- ctx .GetLogger ().Fprintln (os .Stdout , constants . LOG_LEVEL_DEBUG , "Ts: {0} - Running: {1}" , strconv .FormatInt (time .Now ().Unix (), 10 ), reflect .Indirect (reflect .ValueOf (command )).Type ().Name ())
205
+ ctx .GetLogger ().Fprintln (os .Stdout , "debug" , "Ts: {0} - Running: {1}" , strconv .FormatInt (time .Now ().Unix (), 10 ), reflect .Indirect (reflect .ValueOf (command )).Type ().Name ())
207
206
}
208
207
}
209
208
0 commit comments