aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-12-23 17:29:17 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2021-12-23 17:29:17 -0600
commit2eed786c776ba31e464e5929a6a0299a19897192 (patch)
tree82dd9106048009e219d49f7400a0b8e121cb0e85 /src/packet_distribution.cpp
parentd9e69cca06ef98e6a0ea9bc22a990e735ee5a65f (diff)
Split logging option into text and demo
Apparently, people don't like logging demos because it takes up too much space. It's possible to enable NTFS compression for demo files (or the entire demos folder), though.
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index bcbc6671..066ed63c 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -107,7 +107,7 @@ end:
void AOApplication::append_to_demofile(QString packet_string)
{
- if (get_auto_logging_enabled() && !log_filename.isEmpty())
+ if (get_demo_logging_enabled() && !log_filename.isEmpty())
{
QString path = log_filename.left(log_filename.size()).replace(".log", ".demo");
if (!demo_timer.isValid())
@@ -304,7 +304,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
// Remove any characters not accepted in folder names for the server_name
// here
- if (AOApplication::get_auto_logging_enabled() && server_name != "Demo playback") {
+ if (AOApplication::get_demo_logging_enabled() && server_name != "Demo playback") {
this->log_filename = QDateTime::currentDateTime().toUTC().toString(
"'logs/" + server_name.remove(QRegExp("[\\\\/:*?\"<>|\']")) +
"/'yyyy-MM-dd hh-mm-ss t'.log'");