diff options
author | Test_User <hax@andrewyu.org> | 2023-08-13 03:32:02 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-08-13 03:32:02 -0400 |
commit | 5deea44551e337f4e32d0df149ca4387314fb6f1 (patch) | |
tree | b808532a537a776afdeeeaa2bb609f72fbd10ff9 /main.c | |
parent | ad16c4920dff936c48e519f8aa8d2c68732d4116 (diff) | |
download | c_coupserv-5deea44551e337f4e32d0df149ca4387314fb6f1.tar.gz c_coupserv-5deea44551e337f4e32d0df149ca4387314fb6f1.zip |
Add message logging for non-verbose if the message caused an exit, also fix the missing newline on a message that will probably never be printed.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -424,6 +424,10 @@ int main(void) { #endif int err = func(source, argc, argv); if (err) { +#if !LOGALL + WRITES(2, STRING("Message was: [Server] ")); + write(2, full_msg.data, msg_len+1); +#endif WRITES(1, STRING("Disconnecting by result of the network command handler...\n")); return 0; } |