Skip to content

Commit

Permalink
[Impeller] Clarify validation log behavior. (flutter#40921)
Browse files Browse the repository at this point in the history
[Impeller] Clarify validation log behavior.
  • Loading branch information
chinmaygarde authored Apr 4, 2023
1 parent 3031089 commit 13a18b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions impeller/base/validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,17 @@ struct ScopedValidationDisable {

} // namespace impeller

//------------------------------------------------------------------------------
/// Get a stream to the log Impeller uses for all validation errors. The
/// behavior of these logs is as follows:
///
/// * Validation error are completely ignored in the Flutter release
/// runtime-mode.
/// * In non-release runtime-modes, validation logs are redirected to the
/// Flutter `INFO` log. These logs typically show up when verbose logging is
/// enabled.
/// * If `ImpellerValidationErrorsSetFatal` is set to `true`, validation logs
/// are fatal. The runtime-mode restriction still applies. This usually
/// happens in test environments.
///
#define VALIDATION_LOG ::impeller::ValidationLog{}.GetStream()

0 comments on commit 13a18b9

Please sign in to comment.