diff --git a/Changelog.md b/Changelog.md
index ce5ce969ea46d64d7d74db8f1f69d480f61bed99..56d83be432d6f49f9d519e7b0e7382e7e7ac66a0 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -4,6 +4,7 @@
 
 ## Bug fixes
 * Redirect to sign in page when a background request fails with 401 [#6496](https://github.com/diaspora/diaspora/pull/6496)
+* Correctly skip setting sidekiq logfile on Heroku [#6500](https://github.com/diaspora/diaspora/pull/6500)
 
 ## Features
 
diff --git a/config/sidekiq.yml b/config/sidekiq.yml
index 5ea3d5fa106d9ea088e713353b4b5d68ae9d05f9..50d7a8b5cf2e345e0d7fca253a42b1775599db40 100644
--- a/config/sidekiq.yml
+++ b/config/sidekiq.yml
@@ -1,7 +1,9 @@
 <% require_relative 'config/load_config' %>
 ---
 :verbose: false
-:logfile: "<%= AppConfig.sidekiq_log unless AppConfig.heroku? %>"
+<% unless AppConfig.heroku? %>
+:logfile: "<%= AppConfig.sidekiq_log %>"
+<% end %>
 :concurrency: <%= AppConfig.environment.sidekiq.concurrency.to_i %>
 :queues:
   - socket_webfinger