diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 17:12:07 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 17:31:48 +0200 |
commit | 7c67487ab3165b660b7c4db86ec11bdb2abbb59f (patch) | |
tree | 39e253623042a94ddd6da1772a6592c81f865d78 /sources/ogAdmServer.cpp | |
parent | a12af6a6e15b934253e4215e844e295f1bd09304 (diff) |
#915 trim unknown command syslog error to the initial 32 bytes
Aug 28 17:12:33 server ogAdmServer[10110]: 127.0.0.1:54640 POST /nonexistent HTTP/1.1^M Host ...
Aug 28 17:12:33 server ogAdmServer[10110]: unknown command: nonexistent HTTP/1.1^M Host: loca ...
Diffstat (limited to 'sources/ogAdmServer.cpp')
-rw-r--r-- | sources/ogAdmServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 1f2667b..b387541 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -4136,7 +4136,7 @@ static int og_client_state_process_payload_rest(struct og_client *cli) } err = og_cmd_software(root, ¶ms); } else { - syslog(LOG_ERR, "unknown command %s\n", cmd); + syslog(LOG_ERR, "unknown command: %.32s ...\n", cmd); err = og_client_not_found(cli); } |