From 289c2711b8aba2a455d69de0b2ac79970fab89b5 Mon Sep 17 00:00:00 2001 From: brent s Date: Thu, 14 May 2020 12:52:25 -0400 Subject: [PATCH] shut up man, i'm getting SO MANY cron emails about this --- ldap/loglevel.py | 4 ++++ net/dns/linode/ddns.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 ldap/loglevel.py diff --git a/ldap/loglevel.py b/ldap/loglevel.py new file mode 100644 index 0000000..6288a03 --- /dev/null +++ b/ldap/loglevel.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python3 + +# https://www.openldap.org/doc/admin24/slapdconfig.html#loglevel%20%3Clevel%3E +# https://www.zytrax.com/books/ldap/ch6/#loglevel diff --git a/net/dns/linode/ddns.py b/net/dns/linode/ddns.py index 5b15f90..798755a 100755 --- a/net/dns/linode/ddns.py +++ b/net/dns/linode/ddns.py @@ -194,9 +194,9 @@ class Updater(object): rrset = records.get(t) if not ip: e = 'IPv{0} disabled; skipping'.format(v) - warnings.warn(e) if is_tty: - logger.warning(e) + warnings.warn(e) + logger.warning(e) continue if rrset and ip in rrset: e = 'Skipping adding {0} for {1}; already exists in DNS'.format(ip, fqdn)