mirror of
https://github.com/ivuorinen/paperboy.git
synced 2026-01-26 03:34:02 +00:00
chore: Add more messages for automation logs
This commit is contained in:
7
main.go
7
main.go
@@ -102,15 +102,22 @@ func main() {
|
||||
sort.Strings(weeks)
|
||||
slices.Reverse(weeks)
|
||||
|
||||
log.Printf("-> Sorted and reversed %d weeks", len(weeks))
|
||||
|
||||
// Generate Markdown output
|
||||
output := generateMarkdown(config.Template, articlesByWeek, weeks)
|
||||
|
||||
log.Printf("-> Generated Markdown output")
|
||||
|
||||
// Write Markdown output to file
|
||||
outputFile := config.Output
|
||||
err = os.WriteFile(outputFile, []byte(output), 0644)
|
||||
if err != nil {
|
||||
log.Fatalf("Error writing output file: %v", err)
|
||||
}
|
||||
|
||||
log.Printf("-> Wrote output to %s", outputFile)
|
||||
log.Printf("Paperboy finished")
|
||||
}
|
||||
|
||||
// fetchArticles fetches articles from a given feed URL
|
||||
|
||||
Reference in New Issue
Block a user