Skip to content

Commit

Permalink
Add support for and include used logger info into whipper's logfile (#30
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JoeLametta authored Aug 27, 2016
1 parent 8c83c4a commit 122e22d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morituri/result/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def log(self, ripResult, epoch=time.time()):

def logRip(self, ripResult, epoch):
lines = []
lines.append("Log created by: morituri %s" % configure.version)
lines.append("Log created by: morituri %s (%s logger)" % (
configure.version, ripResult.logger))
date = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(epoch)).strip()
lines.append("Log creation date: %s" % date)
lines.append("")
Expand Down
1 change: 1 addition & 0 deletions morituri/result/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class RipResult:

offset = 0
overread = None
logger = None
table = None
artist = None
title = None
Expand Down
1 change: 1 addition & 0 deletions morituri/rip/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def doCommand(self):
self.program.outdir = self.options.output_directory.decode('utf-8')
self.program.result.offset = int(self.options.offset)
self.program.result.overread = self.options.overread
self.program.result.logger = self.options.logger

### write disc files
disambiguate = False
Expand Down

0 comments on commit 122e22d

Please sign in to comment.