Skip to content

Commit

Permalink
Add fallback for unknown SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Dec 10, 2024
1 parent 577074c commit 615c045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/darwin/Framework/CHIP/MTRFrameworkDiagnostics.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

#import "MTRLogging_Internal.h"

#ifndef GIT_COMMIT_SHA
#define GIT_COMMIT_SHA "unknown-sha"
#endif

void MTRFrameworkInitDiagnosticLog()
{
MTR_LOG("Matter Framework Init (git: %s)", GIT_COMMIT_SHA);
Expand Down

0 comments on commit 615c045

Please sign in to comment.