mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
email: Drop unused utility method for logging
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
8a53957b1e
commit
59e51faf2e
@ -1,18 +1,9 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def log_subprocess(result):
|
|
||||||
logger.critical('Subprocess returned %d', result.returncode)
|
|
||||||
logger.critical('Stdout: %r', result.stdout)
|
|
||||||
logger.critical('Stderr: %r', result.stderr)
|
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def atomically_rewrite(filepath):
|
def atomically_rewrite(filepath):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user