You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-17 01:32:29 +02:00
always init Logger first
This commit is contained in:
@ -375,6 +375,8 @@ def config_export(full=False, secrets=False, color=False, dns=False, output=None
|
|||||||
""" Export configuration as YAML or JSON to stdout or file
|
""" Export configuration as YAML or JSON to stdout or file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
log = Logger(want_color=color or None, can_color=output.isatty())
|
||||||
|
|
||||||
only = only or MailuSchema.Meta.order
|
only = only or MailuSchema.Meta.order
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
@ -382,7 +384,6 @@ def config_export(full=False, secrets=False, color=False, dns=False, output=None
|
|||||||
'secrets': secrets,
|
'secrets': secrets,
|
||||||
'dns': dns,
|
'dns': dns,
|
||||||
}
|
}
|
||||||
log = Logger(want_color=color or None, can_color=output.isatty())
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
schema = MailuSchema(only=only, context=context)
|
schema = MailuSchema(only=only, context=context)
|
||||||
|
Reference in New Issue
Block a user