forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1166964 - Disable Breakpad INFO logging. r=ted
- Loading branch information
Showing
8 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
toolkit/crashreporter/breakpad-logging/BreakpadLogging.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "BreakpadLogging.h" | ||
|
||
#include <ostream> | ||
|
||
namespace mozilla { | ||
|
||
// An output stream that acts like /dev/null and drops all output directed to it | ||
// Passing 0 here causes the ostream to enter an error state, and so it silently | ||
// drops all output directed to it. | ||
std::ostream gNullStream(0); | ||
|
||
} // namespace mozilla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BreakpadLogging_h | ||
#define BreakpadLogging_h | ||
|
||
#include <ostream> | ||
|
||
namespace mozilla { | ||
|
||
// An output stream that acts like /dev/null and drops all output directed to it | ||
extern std::ostream gNullStream; | ||
|
||
} // namespace mozilla | ||
|
||
// Override the breakpad info stream to disable INFO logs | ||
#define BPLOG_INFO_STREAM mozilla::gNullStream | ||
|
||
#endif // BreakpadLogging_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- | ||
# vim: set filetype=python: | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
UNIFIED_SOURCES += [ | ||
'BreakpadLogging.cpp', | ||
] | ||
|
||
Library('breakpad_logging') | ||
|
||
FINAL_LIBRARY = 'xul' | ||
|
||
FAIL_ON_WARNINGS = True | ||
|
||
with Files('**'): | ||
BUG_COMPONENT = ('Toolkit', 'Breakpad Integration') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters