Skip to content

Commit

Permalink
Do not send empty log batches to openobserve
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed May 13, 2024
1 parent fbea0d5 commit abdd96a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openagents/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def close(self):


def _flushToOpenObserve(self, batch):
if len(batch) == 0:
return
try:
url = self.options["baseUrl"]+"/api/"+self.options["org"]+"/"+self.options["stream"]+"/_json"
basicAuth = self.options["auth"]
Expand Down

0 comments on commit abdd96a

Please sign in to comment.