diff options
| author | Scott Moser <smoser@ubuntu.com> | 2014-07-16 10:25:03 -0400 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2014-07-16 10:25:03 -0400 |
| commit | e11e7c2d1e908d99179f0382da4ac0b4d49bd7aa (patch) | |
| tree | 7db23bfead6d87cc36528ba46bdcf811b8558a6a /cloudinit/stages.py | |
| parent | 8546c80568059601362f41261993479b074332a3 (diff) | |
| parent | 1c509f3d9340bec9357428bd9f84dd290c642cff (diff) | |
| download | vyos-cloud-init-e11e7c2d1e908d99179f0382da4ac0b4d49bd7aa.tar.gz vyos-cloud-init-e11e7c2d1e908d99179f0382da4ac0b4d49bd7aa.zip | |
Less noisy logs, and improve some log messages.
Removes some of the log messages that are not really meaningful.
Diffstat (limited to 'cloudinit/stages.py')
| -rw-r--r-- | cloudinit/stages.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 58349ffc..9e071fc4 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -397,8 +397,8 @@ class Init(object): mod = handlers.fixup_handler(mod) types = c_handlers.register(mod) if types: - LOG.debug("Added custom handler for %s from %s", - types, fname) + LOG.debug("Added custom handler for %s [%s] from %s", + types, mod, fname) except Exception: util.logexc(LOG, "Failed to register handler from %s", fname) @@ -644,6 +644,8 @@ class Modules(object): freq = mod.frequency if not freq in FREQUENCIES: freq = PER_INSTANCE + LOG.debug("Running module %s (%s) with frequency %s", + name, mod, freq) # Use the configs logger and not our own # TODO(harlowja): possibly check the module @@ -657,7 +659,7 @@ class Modules(object): run_name = "config-%s" % (name) cc.run(run_name, mod.handle, func_args, freq=freq) except Exception as e: - util.logexc(LOG, "Running %s (%s) failed", name, mod) + util.logexc(LOG, "Running module %s (%s) failed", name, mod) failures.append((name, e)) return (which_ran, failures) |
