Skip to content

Commit

Permalink
SilentLogger: silence duration messages
Browse files Browse the repository at this point in the history
Summary:
We are getting a lot of noise from the VRS open progress logger, since we open a decent amount of VRS files.

Even if I silence it on the XR Input side, I noticed that I was still getting duration messages. This just makes it so SilentLogger also silences duration messages

Reviewed By: georges-berenger

Differential Revision: D53141868

fbshipit-source-id: f080a464358b8ab7d7176e800dfa862650864167
  • Loading branch information
maxouellet authored and facebook-github-bot committed Jan 29, 2024
1 parent ee02184 commit 51f2e58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vrs/ProgressLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ class SilentLogger : public ProgressLogger {
bool logStatus(const string&, int = 0) override {
return true;
}
bool logDuration(const string& operationName, double duration, int precision = 1) override {
return true;
}
};

} // namespace vrs

0 comments on commit 51f2e58

Please sign in to comment.