Revert previous commit, move loggging, fix type error

This reverts commit 627f751e.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
8 jobs for main in 8 minutes and 31 seconds (queued for 1 second)
Status Job ID Name Coverage
  Lint
failed #30218
allowed to fail
mypyc

00:01:57

failed #30216
allowed to fail
pylint-latest

00:04:41

failed #30217
allowed to fail
pylint-plugins

00:03:42

passed #30215
security-check

00:00:51

 
  Test
passed #30219
pytest-3.7

00:01:04

passed #30220
pytest-latest

00:02:15

 
  Build
passed #30221
www
build-doc

00:01:34

passed #30222
build-ubuntu

00:00:26

 
Name Stage Failure
failed
mypyc Lint
poezio/plugin_e2ee.py:243: error: Argument 2 to "set_and_save" of "Config" has incompatible type "Optional[str]"; expected "Union[str, int, float, bool]"
poezio/plugin_e2ee.py:270: error: Argument 2 to "isinstance" has incompatible type "Tuple[Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]]"; expected "Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]"
poezio/plugin_e2ee.py:329: error: Unexpected keyword argument "passthrough" for "_encrypt" of "E2EEPlugin"
poezio/plugin_e2ee.py:374: error: Item "MucTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:374: error: Item "DynamicConversationTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:374: error: Item "StaticConversationTab" of "Union[MucTab, DynamicConversationTab, StaticConversationTab, PrivateTab]" has no attribute "parent_muc"
poezio/plugin_e2ee.py:389: note: "_encrypt" of "E2EEPlugin" defined here
poezio/plugin_e2ee.py:499: error: Incompatible return value type (got "Union[str, int, float, bool]", expected "str")
ERROR: Job failed: exit code 1
failed
pylint-plugins Lint
Finished processing dependencies for poezio==0.13.1.dev48
$ pylint -E plugins
************* Module plugins.upload
plugins/upload.py:53:40: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
************* Module plugins.lastlog
plugins/lastlog.py:27:18: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
************* Module plugins.untrackme
plugins/untrackme.py:17:11: E1136: Value 'Union' is unsubscriptable (unsubscriptable-object)
ERROR: Job failed: exit code 1
failed
pylint-latest Lint
poezio/ui/types.py:103:27: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:104:23: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:105:29: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:108:23: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:109:29: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:110:22: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:112:30: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
poezio/ui/types.py:114:22: E1136: Value 'Optional' is unsubscriptable (unsubscriptable-object)
ERROR: Job failed: exit code 1