diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2021-04-29 14:19:08 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2021-04-29 14:19:08 -0600 |
commit | f1012cd71bf380ee840392f176142b7431402c31 (patch) | |
tree | e275daa68bd46d65f5cbf2ee06634f229ce49ba1 /logsrvd/logsrvd.c | |
parent | f913a2c0143375dfef23233ff610c2459772d75c (diff) | |
download | sudo-f1012cd71bf380ee840392f176142b7431402c31.tar.gz |
Create journal files in an incoming directory, move to outgoing when complete.
This will make it possible to process completed journal files
periodically if the relay server is down.
Diffstat (limited to 'logsrvd/logsrvd.c')
-rw-r--r-- | logsrvd/logsrvd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logsrvd/logsrvd.c b/logsrvd/logsrvd.c index 1d562d1f2..d2e31c085 100644 --- a/logsrvd/logsrvd.c +++ b/logsrvd/logsrvd.c @@ -237,6 +237,10 @@ connection_close(struct connection_closure *closure) if (closure == NULL) debug_return; + /* Final state should be FINISHED except on error. */ + sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO, + "closure %p, final state %d", closure, closure->state); + /* * If we finished a client connection in store-and-forward mode, * create a new connection for the relay and replay the journal. |