From 16a1376beebdf1b238c119695b843ea32ccfc7ce Mon Sep 17 00:00:00 2001 From: martinko Date: Thu, 31 Jul 2014 09:55:51 +0200 Subject: BaseScript: added log msg about script's normal shutdown --- python/skytools/scripting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/skytools/scripting.py') diff --git a/python/skytools/scripting.py b/python/skytools/scripting.py index 77c1bec5..23660ced 100644 --- a/python/skytools/scripting.py +++ b/python/skytools/scripting.py @@ -671,7 +671,7 @@ class BaseScript(object): In case of daemon, if will be called in same process as work(), unlike __init__(). """ - pass + self.log.info("Script finished, exiting") # define some aliases (short-cuts / backward compatibility cruft) stat_add = stat_put # Old, deprecated function. -- cgit v1.2.3 From 35004173c7f9606fee4dabf4b98140e9fab03b9b Mon Sep 17 00:00:00 2001 From: martinko Date: Mon, 6 Oct 2014 16:02:03 +0200 Subject: skytools.scripting: minor touch --- python/skytools/scripting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/skytools/scripting.py') diff --git a/python/skytools/scripting.py b/python/skytools/scripting.py index 23660ced..24dd684b 100644 --- a/python/skytools/scripting.py +++ b/python/skytools/scripting.py @@ -957,7 +957,7 @@ class DBScript(BaseScript): sql_retry_formula_a = self.cf.getint("sql_retry_formula_a", 1) sql_retry_formula_b = self.cf.getint("sql_retry_formula_b", 5) sql_retry_formula_cap = self.cf.getint("sql_retry_formula_cap", 60) - elist = exceptions or tuple([]) + elist = exceptions or tuple() stime = time.time() tried = 0 dbc = None -- cgit v1.2.3