Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fixed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Mar 23, 2018
1 parent 7ccfeff commit 06d0e20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cate/util/web/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ def start(self,
application.time_of_last_activity = time.clock()
self.application = application

print('started %s, listening on %s:%s' % (self.name, address or LOCALHOST, port))
print('started {}, listening on {}:{}'.format(self.name, address or LOCALHOST, port))

application.listen(port, address=address or '')
if service_info_file:
write_service_info(self.service_info, service_info_file)
Expand Down Expand Up @@ -289,7 +290,7 @@ def stop(cls,
raise WebAPIServiceError('cannot stop %s service on unknown port (caller: %s)' % (name, caller))

address_and_port = '%s:%s' % (address or LOCALHOST, port)
print('stopping service on %s' % address_and_port)
print('stopping {} on {}'.format(name, address_and_port))

# noinspection PyBroadException
try:
Expand Down

0 comments on commit 06d0e20

Please sign in to comment.