Skip to content

Commit 13796b4

Browse files
Override the default logging config default
The following commit just overrides the default logging config default for the webscale test, whilst still keeping the normal default for other tests.
1 parent 65da63a commit 13796b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

acceptancetests/assess_deploy_webscale.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def parse_args(argv):
122122
default="juju.state.txn",
123123
)
124124
add_basic_testing_arguments(parser, existing=False)
125+
# Override the default logging_config default value set by adding basic
126+
# testing arguments. This way we can have a default value for all tests,
127+
# then override it again just for this test.
128+
parser.set_defaults(logging_config="juju.state.txn=TRACE;<root>=INFO;unit=INFO")
125129
return parser.parse_args(argv)
126130

127131
def main(argv=None):

acceptancetests/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def add_basic_testing_arguments(
297297
help='Keep the Juju environment after the test'
298298
' completes.')
299299
parser.add_argument('--logging-config',
300-
help="Override logging configuration for a deploy",
300+
help="Override logging configuration for a deployment.",
301301
default="<root>=INFO;unit=INFO")
302302
if existing:
303303
parser.add_argument(

0 commit comments

Comments
 (0)