Skip to content

Commit 7904cfd

Browse files
author
Worvast
authored
Merge pull request #3 from Worvast/master
Fixed problems with syslog_raw_sender events send
2 parents 71c6221 + de8d27b commit 7904cfd

File tree

7 files changed

+13
-3
lines changed

7 files changed

+13
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ tests_results/*
99
check_list.txt
1010
.tmp.gz
1111

12+
tests/dataio/file.csv.gz
13+
14+
1215
.idea
1316
# Byte-compiled / optimized / DLL files
1417
__pycache__/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.1] - 2019-04-11
8+
#### Fixed
9+
* Fixed problems with syslog_raw_sender in Faker when not "\n" at end of line sended
10+
711
## [1.0.0] - 2019-02-22
812
#### Added
913
* Requirements file

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![relese-next Build Status](https://travis-ci.com/DevoInc/python-utils.svg?branch=master)](https://travis-ci.com/DevoInc/python-utils) [![LICENSE](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/DevoInc/python-utils/blob/master/LICENSE)
22

3-
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-utils/) [![version](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://pypi.org/project/devo-utils/) [![python](https://img.shields.io/badge/python-3.3%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-utils/)
3+
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-utils/) [![version](https://img.shields.io/badge/version-1.0.1-blue.svg)](https://pypi.org/project/devo-utils/) [![python](https://img.shields.io/badge/python-3.3%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-utils/)
44

55

66
# Devo Python Utils

devoutils/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__description__ = 'Devo Python Library.'
22
__url__ = 'http://www.devo.com'
3-
__version__ = "1.0.0"
3+
__version__ = "1.0.1"
44
__author__ = 'Devo'
55
__author_email__ = 'support@devo.com'
66
__license__ = 'MIT'

devoutils/faker/senders/syslog_raw_sender.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def run(self):
1919
for line in lines:
2020
if self.probability():
2121
if not self.simulation and line:
22-
self.engine.send_raw(str(line))
22+
if line[-1:] != "\n":
23+
line += "\n"
24+
self.engine.send_raw(line)
2325
now = datetime.utcnow().ctime()
2426
print('{0} => {1}'.format(now, str(line)))
2527
else:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Click==7.0
22
requests==2.21.0
3+
pyyaml>=git+git://github.com/yaml/pyyaml@releases/tag/5.1b3
34
devo-sdk>=2,<3
45
Jinja2==2.10
56
psutil==5.4.8

tests/dataio/file.csv.gz

-68 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)