Skip to content

Commit 17643db

Browse files
committed
Use warn not puts for indexing
1 parent 673a53b commit 17643db

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Rules

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ ignore '*/_*'
77
preprocess do
88
next if ENV['NANOC_ENV'] == 'development'
99

10-
puts "Preprocessing"
10+
warn "Preprocessing"
1111
Nanoc::Filters::AlgoliaFilter.new(config: config).destroy_index
12-
puts "Index destroyed"
1312
end
1413

1514
compile '*' do

lib/algolia.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def destroy_index
5555
return if @skip_index
5656

5757
@index.clear_objects
58-
puts "Index #{@index.name} cleared"
58+
warn "Index #{@index.name} cleared"
5959
end
6060

6161
def run(content, params = {})
@@ -72,7 +72,7 @@ def run(content, params = {})
7272
raw: content
7373
).wait
7474

75-
puts "Indexed #{item.identifier} in Algolia"
75+
warn "Indexed #{item.identifier} in Algolia"
7676
end
7777

7878
params[:preview] ? extract_text(content) : content

0 commit comments

Comments
 (0)