Commit 44774bae authored by Carl Chenet's avatar Carl Chenet

log when blue logo shows up

parent 49dd502d
......@@ -54,7 +54,10 @@ class ApplicationController < ActionController::Base
end
intensity = (@traffic * 7).floor + 50.0
color = rand(2000000) == 1 ? "0000%02x" : "%02x0000"
if (blue = (rand(2000000) == 1)) && @user
Rails.logger.info " User #{@user.id} (#{@user.username}) saw blue logo"
end
color = (blue ? "0000%02x" : "%02x0000")
@traffic_color = sprintf(color, intensity > 255 ? 255 : intensity)
true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment