diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 12349f5..11575b6 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -124,8 +124,8 @@ module Rbpkg
</h1>
<ul class="list-group">
EOF
- logs = Dir["*/*/#{name}.log"].map do |subdir_file|
- status_file = "#{Rbpkg.ci_dir}/status/#{subdir_file.gsub(/.log$/, ".status")}"
+ logs = Dir["*/*/#{name}.log.html"].map do |subdir_file|
+ status_file = "#{Rbpkg.ci_dir}/status/#{subdir_file.gsub(/.log.html$/, ".status")}"
s = File.read(status_file).strip
img = status_img(s)
subdir_file_html = subdir_file.to_html