Skip to content

Commit 03d0da6

Browse files
authored
Merge pull request arduino#257 from matthijskooijman/core-cache-logging
Core cache logging improvements
2 parents b91cea8 + 3dc280d commit 03d0da6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/arduino.cc/builder/phases/core_builder.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
package phases
3131

3232
import (
33-
"os"
3433
"path/filepath"
3534

3635
"arduino.cc/builder/builder_utils"
@@ -109,7 +108,7 @@ func compileCore(buildPath string, buildCachePath string, buildProperties proper
109108
if canUseArchivedCore {
110109
// use archived core
111110
if verbose {
112-
logger.Println(constants.LOG_LEVEL_INFO, "Using precompiled core")
111+
logger.Println(constants.LOG_LEVEL_INFO, "Using precompiled core: {0}", targetArchivedCore)
113112
}
114113
return targetArchivedCore, variantObjectFiles, nil
115114
}
@@ -128,7 +127,7 @@ func compileCore(buildPath string, buildCachePath string, buildProperties proper
128127
// archive core.a
129128
if targetArchivedCore != "" {
130129
if verbose {
131-
logger.Fprintln(os.Stdout, constants.LOG_LEVEL_DEBUG, constants.MSG_ARCHIVING_CORE_CACHE, targetArchivedCore)
130+
logger.Println(constants.LOG_LEVEL_INFO, constants.MSG_ARCHIVING_CORE_CACHE, targetArchivedCore)
132131
}
133132
builder_utils.CopyFile(archiveFile, targetArchivedCore)
134133
}

0 commit comments

Comments
 (0)