Skip to content

Commit

Permalink
Merge pull request #2 from mbrodesser-Igalia/add_rules_to_log_nsHttpH…
Browse files Browse the repository at this point in the history
…andler_NotifyObservers_messages

Add rules to log `nsHttpHandler::NotifyObservers` messages
  • Loading branch information
jesup authored Dec 12, 2023
2 parents 654296a + 0d37819 commit 122e47a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions logan-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,22 @@ logan.schema("MOZ_LOG",

schema.module("nsHttp", (module) => {

/******************************************************************************
* nsHttpHandler
******************************************************************************/

module.rule("Creating nsHttpHandler [this=%p].", function(ptr) {
this.obj(ptr).create("nsHttpHandler");
});

module.rule("Deleting nsHttpHandler [this=%p]", function(ptr) {
this.obj(ptr).destroy();
});

module.rule("nsHttpHandler::NotifyObservers [this=%p chan=%p event=%s]", function(ptr, channelPtr, eventTopic) {
this.obj(ptr).capture();
});

/******************************************************************************
* HttpChannelChild
******************************************************************************/
Expand Down

0 comments on commit 122e47a

Please sign in to comment.