mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:35:04 +02:00
Allow customized looger in gui_convert
This commit is contained in:
parent
65e7a184ec
commit
e31d5e396c
1 changed files with 4 additions and 2 deletions
|
|
@ -9,10 +9,12 @@
|
|||
from calibre.customize.conversion import OptionRecommendation, DummyReporter
|
||||
|
||||
def gui_convert(input, output, recommendations, notification=DummyReporter(),
|
||||
abort_after_input_dump=False):
|
||||
abort_after_input_dump=False, log=None):
|
||||
recommendations = list(recommendations)
|
||||
recommendations.append(('verbose', 2, OptionRecommendation.HIGH))
|
||||
plumber = Plumber(input, output, Log(), report_progress=notification,
|
||||
if log is None:
|
||||
log = Log()
|
||||
plumber = Plumber(input, output, log, report_progress=notification,
|
||||
abort_after_input_dump=abort_after_input_dump)
|
||||
plumber.merge_ui_recommendations(recommendations)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue