Skip to content

Commit 88978de

Browse files
committed
Changed logger to puts in jobs
1 parent 4a1da29 commit 88978de

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app/jobs/activate_user.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def perform
1313
return if user.active?
1414
refresh!
1515
if activate_user?(user)
16-
Rails.logger.debug("Activating user #{username}")
16+
puts("Activating user #{username}")
1717
user.activate!
1818
Notifier.welcome_email(username).deliver
19-
Rails.logger.debug("Welcome email sent #{username}")
19+
puts("Welcome email sent #{username}")
2020
end
2121
end
2222

@@ -25,4 +25,4 @@ def activate_user?(user)
2525
always_activate
2626
end
2727

28-
end
28+
end

app/jobs/generate_top_users_composite.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def composite_images
4545
end
4646

4747
def sh(command)
48-
Rails.logger.info "GenerateTopUsersComposite: executing #{command}"
48+
puts("GenerateTopUsersComposite: executing #{command}")
4949
system command
5050
end
5151

52-
end
52+
end

app/jobs/refresh_timeline.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class RefreshTimeline < Struct.new(:username)
66
def perform
77
user = User.with_username(username)
88
Event.create_timeline_for(user)
9-
Rails.logger.debug("Refreshed timeline #{username}")
9+
puts("Refreshed timeline #{username}")
1010
end
11-
end
11+
end

app/jobs/refresh_user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def refresh!
3232

3333
user.calculate_score!
3434

35-
Rails.logger.debug("Refreshed user #{@username}")
35+
puts("Refreshed user #{@username}")
3636
ensure
3737
user.touch(:last_refresh_at)
3838
user.destroy_github_cache

app/jobs/seed_github_protips.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class SeedGithubProtips < Struct.new(:username)
55

66
def perform
77
user = User.with_username(username)
8-
Rails.logger.debug "Adding protips for #{username}"
8+
puts("Adding protips for #{username}")
99
user.build_github_proptips_fast
1010
end
11-
end
11+
end

0 commit comments

Comments
 (0)