Skip to content

Commit 077f989

Browse files
Formatter should not filter shellcmds
1 parent 1a8f0b3 commit 077f989

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/snakemake/logging.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,9 @@ def __init__(
134134
self,
135135
quiet: "Quietness",
136136
show_failed_logs: bool = False,
137-
printshellcmds: bool = False,
138137
):
139138
self.quiet = set() if quiet is None else quiet
140139
self.show_failed_logs = show_failed_logs
141-
self.printshellcmds = printshellcmds
142140
self.last_msg_was_job_info = False
143141

144142
def format(self, record):
@@ -245,9 +243,7 @@ def format_job_finished(self, msg):
245243

246244
def format_shellcmd(self, msg):
247245
"""Format for shellcmd log."""
248-
if self.printshellcmds:
249-
return msg["msg"]
250-
return ""
246+
return msg["msg"]
251247

252248
def format_d3dag(self, msg):
253249
"""Format for d3dag log."""
@@ -629,7 +625,6 @@ def _default_formatter(self):
629625
return DefaultFormatter(
630626
self.settings.quiet,
631627
self.settings.show_failed_logs,
632-
self.settings.printshellcmds,
633628
)
634629

635630
def _default_filehandler(self, logfile):

0 commit comments

Comments
 (0)