Merge pull request #101 from osagit/namedfeeder

fix: name pystemon feeder name in feeder monitor dashboard
pull/559/head
Alexandre Dulaunoy 2021-04-19 16:13:58 +02:00 committed by GitHub
commit f133207fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ while True:
with open(full_item_path, 'rb') as f: #.read()
messagedata = f.read()
path_to_send = os.path.join(pastes_directory, item_id)
path_to_send = 'pystemon>>' + path_to_send
s = b' '.join( [ topic.encode(), path_to_send.encode(), base64.b64encode(messagedata) ] )
socket.send(s)