fixed missing log assignment

This commit is contained in:
Fredrik Eriksson 2019-12-16 21:29:53 +01:00
parent 44088bd64b
commit 32b98e4dbc
Signed by: feffe
GPG Key ID: 18524638BE25530A

View File

@ -13,6 +13,7 @@ import sau.platforms
proc_fd_map_re = re.compile(r'^.*(/[^\(]*) \(deleted\)$')
def _warn(policy, msg):
log = logging.getLogger(sau.LOGNAME)
if not policy.startswith('silent'):
log.warning(msg)