From f6fc592b911b60e303d49026613429dd128ad937 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 2 Feb 2015 21:56:14 +0100 Subject: [PATCH] events.js: reduce logging noise Form submission by pressing return is not an error, and debug level should suffice for the other button-related notices too. --- public/js/icinga/events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index e7ac3e3f1..0a77db60e 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -204,16 +204,16 @@ if (typeof event.originalEvent !== 'undefined' && typeof event.originalEvent.explicitOriginalTarget === 'object') { // Firefox $el = $(event.originalEvent.explicitOriginalTarget); - icinga.logger.info('events/submitForm: Button is event.originalEvent.explicitOriginalTarget'); + icinga.logger.debug('events/submitForm: Button is event.originalEvent.explicitOriginalTarget'); } else { $el = $(event.currentTarget); - icinga.logger.info('events/submitForm: Button is event.currentTarget'); + icinga.logger.debug('events/submitForm: Button is event.currentTarget'); } if ($el && ($el.is('input[type=submit]') || $el.is('button[type=submit]'))) { $button = $el; } else { - icinga.logger.error( + icinga.logger.debug( 'events/submitForm: Can not determine submit button, using the first one in form' ); }