From 661fab8df0ab7482e530030eba617f2818d7e386 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 13 Aug 2018 22:04:42 +0200 Subject: Switch the default use_log value to true Since this is a privacy sensitive action, a short message is now displayed on first run. --- data/default_config.cfg | 2 +- doc/source/configuration.rst | 5 ++--- poezio/config.py | 2 +- poezio/core/core.py | 9 ++++++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/data/default_config.cfg b/data/default_config.cfg index 6be44768..b05acd09 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -251,7 +251,7 @@ use_bookmarks_method = # set to 'true' if you want to save logs of all the messages # in files. -#use_log = false +#use_log = true # The number of lines to preload in a chat buffer when it opens # (the lines are preloaded from the log files) diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst index 6fff3e1c..86264bd7 100644 --- a/doc/source/configuration.rst +++ b/doc/source/configuration.rst @@ -907,10 +907,9 @@ Options related to logging. use_log - **Default value:** ``false`` + **Default value:** ``true`` - Set to ``true`` if you want to save logs of all the messages - in files. + Set to ``false`` if you don’t want to write any message to the disk. Plugins ~~~~~~~ diff --git a/poezio/config.py b/poezio/config.py index 0fb6d118..830c505b 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -137,7 +137,7 @@ DEFAULT_CONFIG = { 'themes_dir': '', 'tmp_image_dir': '', 'use_bookmarks_method': '', - 'use_log': False, + 'use_log': True, 'use_remote_bookmarks': True, 'user_list_sort': 'desc', 'use_tab_nicks': True, diff --git a/poezio/core/core.py b/poezio/core/core.py index 85e68bf5..580e4c76 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -526,10 +526,13 @@ class Core: if firstrun: self.information( 'It seems that it is the first time you start poezio.\n' - 'The online help is here http://doc.poez.io/\n' + 'The online help is here https://doc.poez.io/\n\n' 'No room is joined by default, but you can join poezio’s' - ' room (with /join poezio@muc.poez.io), where you can' - ' ask for help or tell us how great it is.', 'Help') + ' room (with \x19b/join poezio@muc.poez.io\x19o), where you can' + ' ask for help or tell us how great it is.\n\n' + 'Note that all of your discussions are currently logged' + ' to the disk, you can prevent that with' + ' \x19b/set use_log false\x19o', 'Help') self.refresh_window() self.xmpp.plugin['xep_0012'].begin_idle(jid=self.xmpp.boundjid) -- cgit v1.2.3