summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-12-06 20:16:02 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-12-06 20:17:02 +0100
commit4d81776fc9364950bbe89d7da61fe3a7c965334f (patch)
treebc79511b65c7f1865f04b43dfefdbce7aa16a73b /core/io
parentd834789f475d431b10dcaef8804cd75dcd8b47dd (diff)
Tweak log file names for consistency between Mono and non-Mono logs
- Avoid spaces in Mono log file names. - Use a `.log` extension for Mono logs, just like non-Mono logs. - Use periods to separate hours/minutes/seconds for non-Mono logs.
Diffstat (limited to 'core/io')
-rw-r--r--core/io/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/logger.cpp b/core/io/logger.cpp
index 0e6a2e2c9f..f5cea00f28 100644
--- a/core/io/logger.cpp
+++ b/core/io/logger.cpp
@@ -152,7 +152,7 @@ void RotatedFileLogger::rotate_file() {
char timestamp[21];
OS::Date date = OS::get_singleton()->get_date();
OS::Time time = OS::get_singleton()->get_time();
- sprintf(timestamp, "_%04d-%02d-%02d_%02d-%02d-%02d", date.year, date.month, date.day, time.hour, time.min, time.sec);
+ sprintf(timestamp, "_%04d-%02d-%02d_%02d.%02d.%02d", date.year, date.month, date.day, time.hour, time.min, time.sec);
String backup_name = base_path.get_basename() + timestamp;
if (base_path.get_extension() != String()) {