Merge lp:~cprov/snappy-proposed-selftest-agent/logging into lp:snappy-proposed-selftest-agent

Proposed by Celso Providelo
Status: Merged
Approved by: Celso Providelo
Approved revision: 10
Merged at revision: 10
Proposed branch: lp:~cprov/snappy-proposed-selftest-agent/logging
Merge into: lp:snappy-proposed-selftest-agent
Diff against target: 24 lines (+3/-1)
2 files modified
snappy_proposed_selftest_agent/__init__.py (+2/-0)
snappy_proposed_selftest_agent/constants.py (+1/-1)
To merge this branch: bzr merge lp:~cprov/snappy-proposed-selftest-agent/logging
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+260420@code.launchpad.net

Commit message

Adjust logstash service name (stripping solution name) and adding a started message.

Description of the change

Adjust logstash service name (stripping solution name) and adding a started message.

To post a comment you must log in.
Revision history for this message
Celso Providelo (cprov) wrote :

Self-approving because I am evil!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'snappy_proposed_selftest_agent/__init__.py'
2--- snappy_proposed_selftest_agent/__init__.py 2015-05-28 04:39:58 +0000
3+++ snappy_proposed_selftest_agent/__init__.py 2015-05-28 05:36:38 +0000
4@@ -112,6 +112,8 @@
5 log_path,
6 config['logstash'] if 'logstash' in config else None
7 )
8+ logger = logging.getLogger(__name__)
9+ logger.info('Started!', extra=constants.LOGGING_EXTRA)
10
11 ampq_uris = config.get('amqp', 'uris').split()
12 try:
13
14=== modified file 'snappy_proposed_selftest_agent/constants.py'
15--- snappy_proposed_selftest_agent/constants.py 2015-05-28 04:42:33 +0000
16+++ snappy_proposed_selftest_agent/constants.py 2015-05-28 05:36:38 +0000
17@@ -37,7 +37,7 @@
18
19 SOLUTION_NAME = "snappy-proposed"
20
21-SERVICE_NAME = "snappy-proposed-selftest-agent"
22+SERVICE_NAME = "selftest-agent"
23
24 HOSTNAME = socket.gethostname()
25

Subscribers

People subscribed via source and target branches