From 5a158f16a2667d874eb50602ea68420dd0364b30 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 30 Jun 2023 14:04:57 +0200 Subject: [PATCH] backend: cleanup print statements --- intelmq_webinput_csv/serve.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/intelmq_webinput_csv/serve.py b/intelmq_webinput_csv/serve.py index 0f653b2..13e955a 100644 --- a/intelmq_webinput_csv/serve.py +++ b/intelmq_webinput_csv/serve.py @@ -247,7 +247,6 @@ def uploadCSV(body, request, response): bots = [] for bot_id, bot_config in CONFIG.get('bots', {}).items() if body.get('validate_with_bots', False) else {}: - log.info('init bot %s', bot_id) try: bot = import_module(bot_config['module']).BOT kwargs = {} @@ -272,16 +271,13 @@ def uploadCSV(body, request, response): bots_input = [event] for bot_id, bot in bots: - print(f'bot id {bot_id}, input messages: {len(bots_input)}') bot_raised_errors = False if bot.bottype is not BotType.OUTPUT: bots_output = [] - # log.info('messages before bot processing: %r', bots_input) for message in bots_input: try: queues = bot.process_message(message) except Exception: - print(f'message {message} triggered an exception {traceback.format_exc()}') bot_raised_errors = True tracebacks.append(traceback.format_exc()) output_lines_invalid += 1 @@ -331,9 +327,6 @@ def uploadCSV(body, request, response): elif cb: conn.commit() - print('output:', bots_output) - print('tracebacks:', tracebacks) - # lineno is the index, for the number of lines add one total_lines = lineno + 1 if data else 0 result = {"input_lines": total_lines,