Skip to content

Commit

Permalink
Collect console.debug logs during cypress tests (matrix-org#11478)
Browse files Browse the repository at this point in the history
In order for the logs collected by cypress to actually be useful, we really
need `cons:debug`.
  • Loading branch information
richvdh authored and nurjinjafar committed Sep 6, 2023
1 parent 4ded69e commit fbbd83c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ installLogsCollector({
"cons:info",
"cons:warn",
"cons:error",
// "cons:debug",
// most of our logs go through `loglevel`, which sets `logger.log` to be an alias of `logger.debug`.
// Hence, if we want to capture `logger.log` lines, we need to enable `cons:debug` here.
"cons:debug",
"cy:log",
"cy:xhr",
"cy:fetch",
Expand Down

0 comments on commit fbbd83c

Please sign in to comment.