Merge lp:~cprov/adt-cloud-worker/loggging-filename into lp:adt-cloud-worker

Proposed by Celso Providelo
Status: Merged
Approved by: Thomi Richards
Approved revision: 32
Merged at revision: 30
Proposed branch: lp:~cprov/adt-cloud-worker/loggging-filename
Merge into: lp:adt-cloud-worker
Diff against target: 13 lines (+2/-1)
1 file modified
adt_cloud_worker/__init__.py (+2/-1)
To merge this branch: bzr merge lp:~cprov/adt-cloud-worker/loggging-filename
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Review via email: mp+253626@code.launchpad.net

Commit message

Proper logging filename, dad copy & paste

Description of the change

Proper logging filename, dad copy & paste

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'adt_cloud_worker/__init__.py'
2--- adt_cloud_worker/__init__.py 2015-03-20 01:05:56 +0000
3+++ adt_cloud_worker/__init__.py 2015-03-20 01:59:42 +0000
4@@ -262,7 +262,8 @@
5 requests_logger.setLevel(logging.WARNING)
6
7 # If there is no ./logs directory, fallback to stderr.
8- log_path = os.path.abspath(os.path.join(__file__, '../../logs/app.log'))
9+ log_path = os.path.abspath(
10+ os.path.join(__file__, '../../logs/adt-cloud-worker.log'))
11 log_dir = os.path.dirname(log_path)
12 if os.path.exists(log_dir):
13 handler = logging.FileHandler(log_path)

Subscribers

People subscribed via source and target branches