Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-master: Hide connect(stats-writer) errors when running via CLI
Only hide errors that occur if the stats process isn't running, i.e. when socket isn't found or there's no listener. This way e.g. permission errors are still logged, which points to a wrong configuration.
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#ifndef STATS_CLIENT_H | ||
#define STATS_CLIENT_H | ||
|
||
struct stats_client *stats_client_init(const char *path); | ||
struct stats_client * | ||
stats_client_init(const char *path, bool silent_notfound_errors); | ||
void stats_client_deinit(struct stats_client **client); | ||
|
||
#endif |