1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge pull request #1672 from profanity-im/fix-logging

fix path where logs are stored
This commit is contained in:
Michael Vetter 2022-04-01 14:39:10 +02:00 committed by GitHub
commit af6a9df79b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,8 +679,10 @@ _get_log_filename(const char* const other, const char* const login, GDateTime* d
{
gchar* chatlogs_dir = files_file_in_account_data_path(DIR_CHATLOGS, login, is_room ? "rooms" : NULL);
gchar* logfile_name = g_date_time_format(dt, "%Y_%m_%d.log");
gchar* logfile_path = files_file_in_account_data_path(chatlogs_dir, other, logfile_name);
gchar* other_ = str_replace(other, "@", "_at_");
gchar* logfile_path = g_strdup_printf("%s/%s/%s", chatlogs_dir, other_, logfile_name);
g_free(other_);
g_free(logfile_name);
g_free(chatlogs_dir);