From ff9d2f4518b367eab0a7e460a62ab8d7e99671a0 Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Tue, 10 Mar 2015 10:09:59 +0200 Subject: [PATCH] Emit deprecation notice from runbillingserver management command. --- go/billing/management/commands/runbillingserver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go/billing/management/commands/runbillingserver.py b/go/billing/management/commands/runbillingserver.py index 27c35ef04..2100b89c0 100644 --- a/go/billing/management/commands/runbillingserver.py +++ b/go/billing/management/commands/runbillingserver.py @@ -19,6 +19,10 @@ class Command(BaseCommand): def handle(self, *args, **options): """Run the Billing server""" + self.stderr.write( + "NOTE: This command is deprecated. Use twistd and" + " go.billing.api.billing_api_resource to start the billing API.") + def connection_established(connection_pool): from twisted.web.server import Site root = api.Root(connection_pool)