mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +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
|
||||
|
||||
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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user