Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Log Message Changes #121

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/p4p/gw.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def getargs():
class App(object):

def __init__(self, args):
_log.info( '*** Gateway STARTS now using "%s".'%args.config)
args._all_config_files = [args.config]
with open(args.config, 'r') as F:
jconf = F.read()
Expand Down Expand Up @@ -554,7 +555,10 @@ def __init__(self, args):
if 'serverport' in jcli:
client_conf['EPICS_PVA_SERVER_PORT'] = str(jcli['serverport'])

_log.info("Client %s input config:\n%s", name, pprint.pformat(client_conf))
_log.info( "Client effective configuration for %s:", name)
for confKeys, confVals in client_conf.items():
_log.info( " %s : %s", confKeys, confVals)

if args.test_config:
clients[name] = None
else:
Expand Down Expand Up @@ -684,7 +688,9 @@ def __init__(self, args):
self.stats.servers.append(server._S)
# we're live now...

_log.info("Server effective config %s :\n%s", name, pprint.pformat(server.conf()))
_log.info( "Server effective configuration for %s:", name)
for confKeys, confVals in server.conf().items():
_log.info( " %s : %s", confKeys, confVals)

for spv in statusp.keys():
_log.info('Status PV: %s', spv)
Expand Down Expand Up @@ -728,6 +734,7 @@ def run(self):
except KeyboardInterrupt:
pass
finally:
_log.info( '*** Gateway STOPS now.')
[server.stop() for server in self.servers.values()]

@staticmethod
Expand Down