[PATCH 3 of 3] [cubicweb-ctl] add 'MS' flag to --dbglevel

Laurent Peuch cortex at worlddomination.be
Wed Jul 24 13:52:27 CEST 2019


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1563934430 -7200
#      Wed Jul 24 04:13:50 2019 +0200
# Node ID 8029cc4020ccefe5878473c5783c47b213788d9d
# Parent  e6930f202f39eeb63679dd209a394bfb9567bd52
# EXP-Topic improve-cli
[cubicweb-ctl] add 'MS' flag to --dbglevel

It was not available while existing in server/__init__.py

diff --git a/cubicweb/cwctl.py b/cubicweb/cwctl.py
--- a/cubicweb/cwctl.py
+++ b/cubicweb/cwctl.py
@@ -46,7 +46,7 @@ from cubicweb.toolsutils import Command,
 from cubicweb.__pkginfo__ import version as cw_version
 
 LOG_LEVELS = ('debug', 'info', 'warning', 'error')
-DBG_FLAGS = ('RQL', 'SQL', 'REPO', 'HOOKS', 'OPS', 'SEC', 'MORE')
+DBG_FLAGS = ('RQL', 'SQL', 'REPO', 'MS', 'HOOKS', 'OPS', 'SEC', 'MORE')
 
 # don't check duplicated commands, it occurs when reloading site_cubicweb
 CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.',
diff --git a/cubicweb/test/unittest_cwctl.py b/cubicweb/test/unittest_cwctl.py
--- a/cubicweb/test/unittest_cwctl.py
+++ b/cubicweb/test/unittest_cwctl.py
@@ -180,7 +180,7 @@ class InstanceCommandTest(unittest.TestC
 
     @patch.object(server, "DEBUG", 0)
     def test_set_dblevel(self):
-        DBG_FLAGS = ('RQL', 'SQL', 'REPO', 'HOOKS', 'OPS', 'SEC', 'MORE')
+        DBG_FLAGS = ('RQL', 'SQL', 'REPO', 'MS', 'HOOKS', 'OPS', 'SEC', 'MORE')
 
         total_value = 0
 



More information about the cubicweb-devel mailing list