diff options
author | Csaba Henk <csaba@gluster.com> | 2011-07-13 00:52:14 +0200 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-29 05:24:43 -0700 |
commit | a13fbaca0512cae3853a2372d0d8237eb24dd225 (patch) | |
tree | eb504ec3794346e1199b13ba88cf42c5815f28ea /xlators/features/marker/utils/syncdaemon/configinterface.py | |
parent | 6c7a89321af50925fb53da378d996881a1907f31 (diff) |
gsyncd: do some basic sanitization on logs
- exceptions raised by us will be logged as single-line error messages
(full stack strace is shown only at DEBUG loglevel)
- common/well understood exceptions are mapped to "user-parsable" error logs
Change-Id: I75f1fb848483372364b2093878d9cfed576c9739
BUG: 2778
Reviewed-on: http://review.gluster.com/125
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/configinterface.py')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/configinterface.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/configinterface.py b/xlators/features/marker/utils/syncdaemon/configinterface.py index dff6c111d..cc8f7063a 100644 --- a/xlators/features/marker/utils/syncdaemon/configinterface.py +++ b/xlators/features/marker/utils/syncdaemon/configinterface.py @@ -6,7 +6,7 @@ except ImportError: import re from string import Template -from syncdutils import escape, unescape, norm, update_file +from syncdutils import escape, unescape, norm, update_file, GsyncdError SECT_ORD = '__section_order__' SECT_META = '__meta__' @@ -109,7 +109,7 @@ class GConffile(object): def update_to(self, dct, allow_unresolved=False): if not self.peers: - raise RuntimeError('no peers given, cannot select matching options') + raise GsyncdError('no peers given, cannot select matching options') def update_from_sect(sect, mud): for k, v in self.config._sections[sect].items(): if k == '__name__': |