diff --git a/qutebrowser/misc/sessions.py b/qutebrowser/misc/sessions.py index cd3d2f3bc..c3a3a8e34 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -481,3 +481,5 @@ class SessionManager(QObject): log.sessions.exception("Error while deleting session!") raise cmdexc.CommandError("Error while deleting session: {}" .format(e)) + else: + log.sessions.debug("Deleted session {}.".format(name)) diff --git a/tests/end2end/features/sessions.feature b/tests/end2end/features/sessions.feature index 234a428ae..af3e43f11 100644 --- a/tests/end2end/features/sessions.feature +++ b/tests/end2end/features/sessions.feature @@ -294,11 +294,13 @@ Feature: Saving and loading sessions Scenario: Deleting internal session with --force When I run :session-save --force _internal And I run :session-delete --force _internal + And I wait for "Deleted session _internal." in the log Then the session _internal should not exist Scenario: Normally deleting a session When I run :session-save deleted_session And I run :session-delete deleted_session + And I wait for "Deleted session deleted_session." in the log Then the session deleted_session should not exist Scenario: Deleting a session which doesn't exist