Skip to content

Commit

Permalink
Respect rotatelogs setting on all supported operating systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
xvitaly committed Aug 8, 2020
1 parent 8e020b7 commit fd13ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/schema-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Available options of the `acasbot.json` configuration file:
* `restlangs` - the list of restricted languages. The bot will score users using them in their clients;
* `hidejoins` - enable or disable removing of join messages;
* `language` - the default language for the logs and the internal messages;
* `rotatelogs` - use an internal log rotate function (useful for configurations without logrotate.d; always enabled on all non-POSIX systems);
* `rotatelogs` - use an internal log rotate function (useful for configurations without logrotate.d; recommended for all non-POSIX systems);
* `duplicatelogs` - allow to duplicate logs to stdout channel when logging to files is enabled.

# Schema changes
Expand Down
2 changes: 1 addition & 1 deletion ecasbot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def rotatelogs(self) -> bool:
Checks if the bot will need to use an internal log rotate function.
:return: Return True if an internal log rotate is enabled.
"""
return self.__data['rotatelogs'] or (os.name != 'posix')
return self.__data['rotatelogs']

@property
def chkrgx(self) -> str:
Expand Down

0 comments on commit fd13ab3

Please sign in to comment.