Skip to content

Commit 1a17a80

Browse files
Millefeuille42Wescoeur
authored andcommitted
fix(nbd_http_server): add missing regex import and remove useless inline loop
Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>
1 parent a7f84d5 commit 1a17a80

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎nbd_http_server.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import argparse
2323
import errno
2424
import os
25+
import re
2526
import signal
2627
import subprocess
2728
import sys
@@ -290,7 +291,7 @@ def log_server_messages():
290291
while server.poll() is None:
291292
line = server.stdout.readline().rstrip('\n')
292293
if line:
293-
if any(verbose_pattern.match(line) for keyword in verbose_keywords):
294+
if verbose_pattern.match(line):
294295
dprint(line)
295296
else:
296297
thread_print(line)

0 commit comments

Comments
 (0)