Skip to content

Commit

Permalink
[dotnet] [cdp] Add more internal logs around CDP implementation
Browse files Browse the repository at this point in the history
Related to #14903
  • Loading branch information
nvborisenko committed Dec 17, 2024
1 parent 6ce47b2 commit cd138fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dotnet/src/webdriver/DevTools/DevToolsSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ private void MonitorMessageQueue()
}
catch (Exception ex)
{
if (logger.IsEnabled(LogEventLevel.Error))
{
logger.Error($"Unexpected error occured while processing message: {ex}");
}

LogError("Unexpected error occured while processing message: {0}", ex);
}
}
Expand Down Expand Up @@ -578,6 +583,11 @@ private void ProcessMessage(string message)
}
else
{
if (logger.IsEnabled(LogEventLevel.Error))
{
logger.Error($"Recieved Unknown Response {commandId}: {message}");
}

LogError("Recieved Unknown Response {0}: {1}", commandId, message);
}

Expand Down

0 comments on commit cd138fc

Please sign in to comment.