mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 parent
8a53957b1e
commit
59e51faf2e
1 file changed
-9
@@ -1,18 +1,9 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import contextlib
|
||||
import logging
|
||||
import os
|
||||
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
|
||||
def atomically_rewrite(filepath):
|
||||
|
||||
Reference in new issue
Block a user