summaryrefslogtreecommitdiffstats
path: root/core/io/logger.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-10 11:02:57 +0200
committerGitHub <noreply@github.com>2020-07-10 11:02:57 +0200
commitaeccd1e287237db3ad6fcf81535b5260857b79cd (patch)
tree0c84cf9a0c924b86c8f9dcd7c4961774f70593b6 /core/io/logger.cpp
parentf67b65864f318dd066e34388e936fcaf33cf448f (diff)
parent20af28ec0651da256e2c9ccefc868ea028c73a4a (diff)
downloadredot-engine-aeccd1e287237db3ad6fcf81535b5260857b79cd.tar.gz
Merge pull request #40121 from Calinou/enable-file-logging
Enable file logging by default on desktops to help with troubleshooting
Diffstat (limited to 'core/io/logger.cpp')
-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 ef78b1194e..886e5695b1 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()) {