diff options
| author | Mr. Goblin <mrgoblin@mrgoblin.net> | 2026-10-02 23:47:34 +0300 |
|---|---|---|
| committer | Mr. Goblin <mrgoblin@mrgoblin.net> | 2026-10-02 23:47:34 +0300 |
| commit | e6fa97554b311700b7feb1217abc3648b1799627 (patch) | |
| tree | 273571cf7f469e99ea8adf754c43d0d8ac70b141 | |
| parent | 3acf361aaf072c6ee11ae52f6ef66d9605e97f29 (diff) | |
added disconnect logging
| -rw-r--r-- | btasktd.c | 1 | ||||
| -rw-r--r-- | codes.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -219,6 +219,7 @@ handle_user(struct btasktd *this, int id) if (pu->bi > 0) { handle_buf(this, id, 0); } + logger_log(log_lvl_info, "user disconnected\n"); close(pu->fd); reset_user(pu); return; @@ -18,5 +18,5 @@ code_to_str(int code) C(413) C(503) } - return "666 UNKNOWN CODE\r\n"; + return "418 I'm a teapot\r\n"; } |
