Skip to content

Commit

Permalink
Improve logging for auth plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Sep 23, 2019
1 parent d19b515 commit 4356592
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions w3af/plugins/auth/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ def has_active_session(self):
"""
Check user session.
"""
msg = 'Checking if session for user %s is active'
self._log_debug(msg % self.username)

# Create a new debugging ID for each has_active_session() run
self._new_debugging_id()

msg = 'Checking if session for user %s is active'
self._log_debug(msg % self.username)

try:
http_response = self._uri_opener.GET(self.check_url,
grep=False,
Expand Down
6 changes: 6 additions & 0 deletions w3af/plugins/auth/detailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ def has_active_session(self):
"""
Check user session
"""
# Create a new debugging ID for each has_active_session() run
self._new_debugging_id()

msg = 'Checking if session for user %s is active'
self._log_debug(msg % self.username)

try:
http_response = self._uri_opener.GET(self.check_url,
grep=False,
Expand Down
6 changes: 6 additions & 0 deletions w3af/plugins/auth/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def has_active_session(self):
"""
Check user session
"""
# Create a new debugging ID for each has_active_session() run
self._new_debugging_id()

msg = 'Checking if session for user %s is active'
self._log_debug(msg % self.username)

try:
http_response = self._uri_opener.GET(self.check_url,
grep=False,
Expand Down

0 comments on commit 4356592

Please sign in to comment.