added 'quiet' config option to disable printing of cli messages (for running rspecs)
This commit is contained in:
Родитель
31e3912f34
Коммит
288540da7d
|
@ -74,6 +74,10 @@ module CASServer
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.print_cli_message(msg, type = :info)
|
def self.print_cli_message(msg, type = :info)
|
||||||
|
if respond_to?(:config) && config && config[:quiet]
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if type == :error
|
if type == :error
|
||||||
io = $stderr
|
io = $stderr
|
||||||
prefix = "!!! "
|
prefix = "!!! "
|
||||||
|
|
|
@ -525,11 +525,18 @@ log:
|
||||||
# If you want full database logging, uncomment this next section.
|
# If you want full database logging, uncomment this next section.
|
||||||
# Every SQL query will be logged here. This is useful for debugging database
|
# Every SQL query will be logged here. This is useful for debugging database
|
||||||
# problems.
|
# problems.
|
||||||
#
|
|
||||||
#db_log:
|
#db_log:
|
||||||
# file: /var/log/casserver_db.log
|
# file: /var/log/casserver_db.log
|
||||||
|
|
||||||
|
|
||||||
|
# Setting the following option to true will disable CLI output to stdout.
|
||||||
|
# i.e. this will get rid of messages like ">>> Redirecting RubyCAS-Server log..."
|
||||||
|
# This is useful when, for example, you're running rspecs.
|
||||||
|
|
||||||
|
#quiet: true
|
||||||
|
|
||||||
|
|
||||||
##### SINGLE SIGN-OUT ##########################################################
|
##### SINGLE SIGN-OUT ##########################################################
|
||||||
|
|
||||||
# When a user logs in to a CAS-enabled client application, that application
|
# When a user logs in to a CAS-enabled client application, that application
|
||||||
|
|
Загрузка…
Ссылка в новой задаче