File xbt_tracker_log_paths.patch of Package xbt-tracker

Index: Tracker/connection.cpp
===================================================================
--- Tracker/connection.cpp.orig
+++ Tracker/connection.cpp
@@ -148,7 +148,7 @@
 #endif
 	if (m_log_access)
 	{
-		static std::ofstream f("xbt_tracker_raw.log");
+		static std::ofstream f("/var/log/xbt_tracker/raw.log");
 		f << m_server->time() << '\t' << inet_ntoa(m_a.sin_addr) << '\t' << ntohs(m_a.sin_port) << '\t' << v << std::endl;
 	}
 	Ctracker_input ti;
@@ -257,7 +257,7 @@
 	{
 		Cvirtual_binary s2 = xcc_z::gzip(s);
 #ifndef NDEBUG
-		static std::ofstream f("xbt_tracker_gzip.log");
+		static std::ofstream f("/var/log/xbt_tracker/gzip.log");
 		f << m_server->time() << '\t' << v[5] << '\t' << s.size() << '\t' << s2.size() << '\t' << ti.m_compact << '\t' << (!ti.m_compact && ti.m_no_peer_id) << std::endl;
 #endif
 		if (s2.size() + 24 < s.size())
openSUSE Build Service is sponsored by