diff --git a/authnet.module b/authnet.module
index abf8bc5..8350574 100755
--- a/authnet.module
+++ b/authnet.module
@@ -179,8 +179,8 @@ function authnet_log_response($response) {
   // Process the message if it's an error, or if debug mode is on.
   if (!$status['success'] || variable_get('authnet_debug', FALSE)) {
 
-    // Print errors to the screen, if Drupal's core error_level variable is greater than or equal to 1.
-    if (!$status['success'] && variable_get('error_level', 1) >= 1) {
+    // Print errors to the screen, if debug mode is on and Drupal's core error_level variable is greater than or equal to 1.
+    if (!$status['success'] && variable_get('authnet_debug', FALSE) && variable_get('error_level', 1) >= 1) {
       drupal_set_message($status['message'], 'error');
     }
 
