From 2f2fe71cdc09130317c7c858b5d3be68884c245b Mon Sep 17 00:00:00 2001
From: Benjamin Neff <benjamin@coding4coffee.ch>
Date: Tue, 21 Jun 2016 06:02:45 +0200
Subject: [PATCH] use DiasporaFederation::Salmon::MagicEnvelope for federation
 debug logging

---
 config/logging.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/logging.rb b/config/logging.rb
index b29130f670..57cf39b0aa 100644
--- a/config/logging.rb
+++ b/config/logging.rb
@@ -86,7 +86,8 @@ Logging::Rails.configure do |config|
 
   # log-levels from the diaspora.yml for SQL and federation debug-logging
   Logging.logger[ActiveRecord::Base].level = AppConfig.environment.logging.debug.sql? ? :debug : :info
-  Logging.logger["XMLLogger"].level = AppConfig.environment.logging.debug.federation? ? :debug : :info
+  Logging.logger[DiasporaFederation::Salmon::MagicEnvelope].level =
+    AppConfig.environment.logging.debug.federation? ? :debug : :info
 
   # Under Phusion Passenger smart spawning, we need to reopen all IO streams
   # after workers have forked.
-- 
GitLab