File xbt_tracker_log.diff of Package xbt-tracker
--- Tracker/connection.cpp 2020-04-13 02:28:18.000000000 +0200
+++ Tracker/connection.cpp 2020-04-19 09:39:34.915138085 +0200
@@ -120,7 +120,7 @@
#endif
if (srv_config().log_access_)
{
- static std::ofstream f("xbt_tracker_raw.log");
+ static std::ofstream f("/var/log/xbt-tracker/raw.log");
f << srv_time() << '\t' << inet_ntoa(m_a.sin_addr) << '\t' << ntohs(m_a.sin_port) << '\t' << v << std::endl;
}
tracker_input_t ti;
@@ -205,7 +205,7 @@
{
shared_data 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 << srv_time() << '\t' << v[5] << '\t' << s.size() << '\t' << s2.size() << std::endl;
#endif
if (s2.size() + 24 < s.size())