Skip to content

Commit

Permalink
feat: more debug information to logstash and loggly parts
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Dec 26, 2021
1 parent 86e1915 commit db4a426
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

*
* More debug information to logstash and loggly parts

### Changed

Expand Down
2 changes: 1 addition & 1 deletion src/appier_extras/parts/diag/part.py
Expand Up @@ -55,7 +55,7 @@ class DiagPart(appier.Part):
not optimized for proper asynchronous usage.
Buffer backed support exists for the following remote services:
loggly and logstaash, allowing almost async usage with minimal
loggly and logstash, allowing almost async usage with minimal
impact in the main execution thread. The implementation of the
flush operation depends on the network library in use, meaning
that if a proper "delayer" method exists it may not even block
Expand Down
9 changes: 9 additions & 0 deletions src/appier_extras/parts/loggly/part.py
Expand Up @@ -76,6 +76,15 @@ def __init__(self, *args, **kwargs):
def version(self):
return base.VERSION

def info(self):
info = appier.Part.info(self)
info.update(
log = self.log,
buffer_size = self.buffer_size,
timeout = self.timeout
)
return info

def load(self):
appier.Part.load(self)

Expand Down
9 changes: 9 additions & 0 deletions src/appier_extras/parts/logstash/part.py
Expand Up @@ -76,6 +76,15 @@ def __init__(self, *args, **kwargs):
def version(self):
return base.VERSION

def info(self):
info = appier.Part.info(self)
info.update(
log = self.log,
buffer_size = self.buffer_size,
timeout = self.timeout
)
return info

def load(self):
appier.Part.load(self)

Expand Down

0 comments on commit db4a426

Please sign in to comment.