| @@ -51,9 +51,22 @@ | ||
| 51 | 51 | </div> |
| 52 | 52 | </div> |
| 53 | 53 | <?php endif; |
| 54 | 54 | |
| 55 | - if (logtivity_is_production() == false) : ?> | |
| 55 | + if (logtivity_url_environment_mismatch()) : ?> | |
| 56 | + <div class="logtivity-notice logtivity-notice-danger"> | |
| 57 | + <h2>Logtivity is misconfigured and logging has stopped.</h2> | |
| 58 | + <div> | |
| 59 | + Your App URL (<?php echo esc_html(logtivity_get_app_url()); ?>) | |
| 60 | + and API URL (<?php echo esc_html(logtivity_get_api_url()); ?>) | |
| 61 | + point to different environments. Neither | |
| 62 | + <code>LOGTIVITY_APP_URL</code> or <code>LOGTIVITY_API_URL</code> | |
| 63 | + constant should be set, or both must be set to the same | |
| 64 | + non-production environment. No logs will be sent until this is | |
| 65 | + corrected. | |
| 66 | + </div> | |
| 67 | + </div> | |
| 68 | + <?php elseif (logtivity_is_production() == false) : ?> | |
| 56 | 69 | <div class="logtivity-notice logtivity-notice-warning"> |
| 57 | 70 | <h2>This site is not sending logs to the production application.</h2> |
| 58 | 71 | <div> |
| 59 | 72 | See your dashboard at |