summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2018-05-22 12:03:11 +0100
committerMichael Klishin <michael@clojurewerkz.org>2018-05-22 12:03:11 +0100
commite8920ec0c59639c325f18ec7a9b9aa2999aa2c80 (patch)
tree064e2adf198b3896d86cbdefcd0ddc3b158e2f39
parentc526e453d3749f8d3b91601aa3376d867eb5c3b4 (diff)
downloadrabbitmq-server-git-e8920ec0c59639c325f18ec7a9b9aa2999aa2c80.tar.gz
Syslog formatter is different from e.g. the file one now, update the tests
-rw-r--r--test/unit_log_config_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit_log_config_SUITE.erl b/test/unit_log_config_SUITE.erl
index 1cfa6aa6c1..b753c4075c 100644
--- a/test/unit_log_config_SUITE.erl
+++ b/test/unit_log_config_SUITE.erl
@@ -482,7 +482,7 @@ expected_syslog_handler() ->
expected_syslog_handler(Level) ->
[{syslog_lager_backend, [Level,
{},
- {lager_default_formatter, formatter_config()}]}].
+ {lager_default_formatter, syslog_formatter_config()}]}].
env_var_overrides_config(_) ->
EnvLogFile = "rabbit_default.log",
@@ -691,3 +691,6 @@ sort_handlers(Handlers) ->
formatter_config() ->
[date," ",time," ",color,"[",severity, "] ", {pid,[]}, " ",message,"\n"].
+
+syslog_formatter_config() ->
+ [color,"[",severity, "] ", {pid,[]}, " ",message,"\n"].