Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Clarify full scan log
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Biville committed Apr 3, 2019
1 parent 0b4be8b commit defabff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ func getAffectedFiles(config *Configuration,
)

if versionedTemplate.RequiresFullScan() {
log.Print("Unable to get last execution revision, triggering a full scan")
if versionedTemplate.Revision == "" {
log.Print("Unable to get last execution revision, triggering a full scan")
} else {
log.Printf("Configuration changed since last execution (%s), triggering a full scan", versionedTemplate.Revision)
}
changes, err = pathMatcher.ScanAllFiles(config.Includes, config.Excludes, fileSystem)
if err != nil {
return nil, err
Expand Down

0 comments on commit defabff

Please sign in to comment.