summaryrefslogtreecommitdiffhomepage
path: root/Log.hs
Commit message (Collapse)AuthorAge
* Fix bug that prevented creating ~/.debug-me/log/remote/ when ~/.debug-me/ ↵Joey Hess2017-05-09
| | | | didn't already exist.
* add license headers to all source filesJoey Hess2017-04-30
|
* log remote logs to subdirJoey Hess2017-04-30
|
* only show log filename at endJoey Hess2017-04-28
|
* control window and chattingJoey Hess2017-04-28
| | | | Works!
* log to ~/.debug-me/log/Joey Hess2017-04-28
| | | | | | | | | Make watcher also log and display the name of the logfile at start and end of session. --download still downloads to current directory because that seems less surprising than downloading to elsewhere. Also, the user might want to keep a copy of the local log while downloading the server log.
* switch wire message seralization to use protocol buffersJoey Hess2017-04-27
| | | | | | | | | | | | | | | | | | | | | | | | This way it's not tied to details of the haskell binary library, and implementations in other languages should be fairly simple to do. The haskell protobuf library was used because it does not need extra tooling or build steps. So I didn't write a .proto file, but one could fairly easily be written by following ProtocolBuffers.hs and translating it. ProtocolBuffers.hs is *extremely* repetative and tedious code. Surely there must be a way to not need to write all of that? Oh well, I wrote it.. Sizes of serialized messages: ">>> debug-me session started": 121 sending a single key press: 169 This seems equally as efficient as the binary serialization was; that was 165 bytes before elapsedTime was added. This commit was sponsored by Ethan Aubin.
* rename LogMessage to AnyMessageJoey Hess2017-04-27
| | | | Not related to the Log anymore.
* add framing protocol for websocketsJoey Hess2017-04-22
|
* it worksJoey Hess2017-04-22
| | | | | | | | | Multi-user client-server debug-me is working, almost perfectly. All that was missing was replaying the log when the developer connected. A number of race conditions had to be avoided to do that sanely. This commit was sponsored by Ignacio on Patreon.
* stream the logJoey Hess2017-04-22
| | | | | avoid processing it in memory, and allow parse errors at end to not prevent displaying part of it
* added debug-me --watch modeJoey Hess2017-04-21
| | | | This commit was sponsored by Ewen McNeill.
* initial http serverJoey Hess2017-04-21
| | | | | | | | | | | | Incomplete, but the client is able to connect and send messages which get logged. Split up debug-me.hs into Role/* Switched from cereal to binary, since websockets operate on lazy ByteStrings, and using cereal would involve a copy on every receive. This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
* use cereal for efficient serialization for wire formatJoey Hess2017-04-21
| | | | | | | | | | | I tried both binary and cereal. For a ActivityMessage that takes 341 bytes in JSON and has a dataSize of 129, both used 165 bytes. Went with cereal since lazy bytestrings are not needed, and I might want to use https://hackage.haskell.org/package/safecopy later. (Perhaps I should be using protocol buffers or something to make it easier for non-haskell implementations? But that would complicate things a lot.)
* reorganized message typesJoey Hess2017-04-19
| | | | | | | | | Make Control messages be out-of-band async messages, without a pointer to a previous message. And then followed the type change through the code for hours.. This commit was sponsored by Nick Daly on Patreon.
* initial CryptoJoey Hess2017-04-18
| | | | | Will use Ed25519 because it's from DJB and well regarded and in common use now.
* memory DOS preventionJoey Hess2017-04-18
| | | | | | | | | | | | Prevent DOS of user side by limiting the size of the BackLog that is maintained. This should not cause problems in even high latency environments, and should prevent memory use > 16 mb. The developer side does not keep much data, other than a list of the Hashes of things it has recently sent, so is not susceptable to memory DOS. This commit was sponsored by Brock Spratlen on Patreon.
* refactor out LogJoey Hess2017-04-18