Browse Source

Allow forcing log

master
Dylan Baker 4 years ago
parent
commit
645b249df3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Rakefile

+ 2
- 1
Rakefile View File

@@ -9,7 +9,8 @@ task 'migrate' do
9 9
 end
10 10
 
11 11
 task 'scrape' do
12
-  scraper = Scraper.new(log: ENV['APP_ENV'] == 'development')
12
+  should_log = ENV['APP_ENV'] == 'development' || ARGV.include?('--log')
13
+  scraper = Scraper.new(log: should_log)
13 14
   scraper.scrape
14 15
 end
15 16
 

Loading…
Cancel
Save