1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00
profanity/src
Michael Vetter 482f8955d7 Fix log rotation
See https://github.com/profanity-im/profanity/issues/1518
It has a good explanation of what happened:

```
Apparently, the _rotate_log_file function tried to extract user-provided
name from currently used mainlogfile and restart logging to the same
place after rotation, but currently this is interpreted as a full path
instead. As I understand, the log rotation is no longer done with
user-provided paths at all so this should be simply skipped altogether
now as passing any non-NULL value is interpreted as user-provided.
Replacing start with NULL appears to fix it for me.
```

In log_msg() we only rotate the log if not user_provided_log.

https://github.com/profanity-im/profanity/pull/1455 changed the
behaviour from user defined filename in the log dir to using full path.
2021-06-28 17:41:48 +02:00
..
command Fix executable example 2021-06-10 17:28:57 +02:00
config editor: Use datadir instead of tmp dir 2021-06-10 16:51:28 +02:00
event Msg sending: don't write to chatwin nor to log if sending failed 2021-04-08 00:30:03 +02:00
omemo OMEMO: Separate handling of device list 2021-06-05 19:12:42 +02:00
otr Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00
pgp Fix various typos 2020-12-10 09:24:32 +01:00
plugins Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00
tools http upload: use correct content type 2021-06-02 15:29:32 +02:00
ui Print editor command in /executable overview 2021-06-10 17:28:29 +02:00
xmpp XEP-0353: Display a notice when receiving a call 2021-06-09 20:14:57 +02:00
common.c Fix random string generation 2021-04-17 22:37:21 +02:00
common.h Refactor call_external 2020-12-11 15:51:01 +01:00
database.c Get rid of asprintf and _GNU_SOURCE define 2021-03-30 17:38:13 +02:00
database.h Apply coding style 2020-07-07 14:18:57 +02:00
log.c Fix log rotation 2021-06-28 17:41:48 +02:00
log.h Remove log_reinit() 2020-12-11 11:18:24 +01:00
main.c Mention clipboard in version output 2021-04-16 13:17:04 +02:00
profanity.c profanity.c: move var into function 2021-03-16 14:41:52 +01:00
profanity.h Update copyright 2021-01-08 16:36:30 +01:00