Skip to content

Commit a06d321

Browse files
committed
Dumping more information to the log to debug a python test failure on travis
1 parent 5d219b8 commit a06d321

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

java/server/src/org/openqa/selenium/grid/data/CreateSessionRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ private static CreateSessionRequest fromJson(JsonInput input) {
8787

8888
return new CreateSessionRequest(downstreamDialects, capabilities, metadata);
8989
}
90+
91+
public String toString() {
92+
return String.format("<CreateSessionRequest with %s>", capabilities);
93+
}
9094
}

py/selenium/webdriver/remote/errorhandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ def check_response(self, response):
226226
meth = "%s.%s" % (frame['className'], meth)
227227
msg = " at %s (%s)"
228228
msg = msg % (meth, file)
229-
stacktrace.append(msg)
229+
#stacktrace.append(msg)
230+
stacktrace.append(frame)
230231
except TypeError:
231232
pass
232233
if exception_class == UnexpectedAlertPresentException:

0 commit comments

Comments
 (0)