| @@ -126,9 +126,8 @@ | ||
| 126 | 126 | file_put_contents(self::$logFile, $logEntry, FILE_APPEND | LOCK_EX); |
| 127 | 127 | |
| 128 | 128 | // Also log to WordPress debug log for critical errors |
| 129 | 129 | if (in_array($level, [self::EMERGENCY, self::ALERT, self::CRITICAL, self::ERROR], true) && (defined('WP_DEBUG') && WP_DEBUG)) { |
| 130 | - error_log('[Yatra][' . $level . '] ' . $message . $contextStr); | |
| 131 | 130 | } |
| 132 | 131 | } |
| 133 | 132 | |
| 134 | 133 | /** |