Skip to content

Commit

Permalink
ok, I think this is working right
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Dec 9, 2022
1 parent 916094f commit 0467fe2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ldogger/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def send_message(args):
print(" ", json.dumps(dat, indent=2).replace("\n", "\n "))
if not (200 <= res.status < 300):
rc = res.status
if args.noise_marks:
mark = "32mo" if rc == 0 else "31mx"
print(f"\x1b[{mark}", end="")
sys.stdout.flush()
if args.noise_marks:
mark = "32mo" if rc == 0 else "31mx"
print(f"\x1b[{mark}", end="")
sys.stdout.flush()
return rc


Expand Down
3 changes: 2 additions & 1 deletion ldogger/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ def send(
if dry_run or verbose:
print(f"send() to {url}")
print(" " + json.dumps(msg, indent=2).replace("\n", "\n "))
msg = json.dumps(msg).encode()
msg = json.dumps(msg)
if dry_run:
return msg
msg = msg.encode()
try:
return HTTP.request("POST", url, body=msg, headers=headers)
except urllib3.exceptions.ProtocolError as e:
Expand Down
7 changes: 7 additions & 0 deletions t/files/re-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


# synergy produces this shit like 40 times a second
compute left/right minimum bearings

# rtkit tells me about how itsa fucking brilliant supervisor
Supervising \d+ threads of \d+ processes of \d+ users?

0 comments on commit 0467fe2

Please sign in to comment.