2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 00:35:14 +00:00

Remove EVLOG_JSON, callers must use EVLOG_JSON_COMPACT or EVLOG_JSON_PRETTY

This commit is contained in:
Todd C. Miller
2024-03-09 11:42:07 -07:00
parent 46e31a74d7
commit b6175b78ad
5 changed files with 7 additions and 10 deletions

View File

@@ -1561,13 +1561,12 @@ sudoers_set_log_format(enum def_tuple tuple)
enum eventlog_format format;
debug_decl(cb_log_format, SUDOERS_DEBUG_PLUGIN);
/* FFR - make "json" an alias for EVLOG_JSON_COMPACT instead. */
switch (tuple) {
case json:
format = EVLOG_JSON;
break;
case json_compact:
format = EVLOG_JSON_COMPACT;
break;
case json:
case json_pretty:
format = EVLOG_JSON_PRETTY;
break;