Skip to content

Commit

Permalink
initialize absl logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerschoe committed Sep 25, 2024
1 parent 43f52fb commit 19e6c6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gwhisper/gwhisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <libCli/Call.hpp>
#include <libCli/Completion.hpp>
#include <versionDefine.h> // generated during build
#include "absl/log/initialize.h"

using namespace ArgParse;

Expand Down Expand Up @@ -48,6 +49,9 @@ const char* g_helpString =

int main(int argc, char **argv)
{
// Some components we are consuming from gRPC (descDb / cliCall) use absl logging. Initialize it here:
absl::InitializeLog();

// First we construct the initial Grammar for the CLI tool:
Grammar grammarPool;
GrammarElement *grammarRoot = cli::constructGrammar(grammarPool);
Expand Down

0 comments on commit 19e6c6d

Please sign in to comment.