# Error Log Settings for message length

**URL:** https://community.kinsta.com/t/error-log-settings-for-message-length/1103
**Category:** Application Support
**Created:** [November 9, 2021, 6:53pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103 "2021-11-09T18:53:32Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 9, 2021, 6:53pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/1 "2021-11-09T18:53:32Z")

</div>

A common trick I use to gain insight into what certain arrays/object contain is I use a custom write\_log function that essentially just prints out info to the php error log in a very clean way. The code can be [found here](https://wordpress.stackexchange.com/questions/260236/how-to-put-logs-in-wordpress). Usually on my local env, I can do this and see everything. However, in DevKinsta, the string length of the Error Message seems to be getting limited by something. Setting in php.ini? I’m not sure. It will just randomly terminate the string and end with a line that reads “while reading response header from upstream” and some other info about the server:, request:, client: etc.

How can I adjust the settings to give me the full output?

Also, this is the first time I’ve ever seen errors put in the log that start with: "FastCGI sent in stderr: "PHP message:

What exactly is going on with these error logs?

Thank you in advance for any help.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [November 9, 2021, 9:50pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/2 "2021-11-09T21:50:18Z")

</div>

Welcome to DevKinsta @robruiz !

Indeed you could use php.ini to increase the length of the output of the error with `log_errors_max_len` though I’m not sure if that’s the exact issue occurring here. There are [instructions here](https://community.kinsta.com/t/how-to-change-upload-max-filesize-in-windows/1064/2) on how to edit this. A bit of a tease here but if you’re able to wait just a little bit longer, we’re going to make it much easier to update the php.ini configurations (no exact date, but soon). What’s the error shown in the logs there?

---

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 9, 2021, 10:09pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/3 "2021-11-09T22:09:26Z")

</div>

> [@michael](#):
>
> log\_errors\_max\_len

There’s no error shown. The output just abruptly ends.

---

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 9, 2021, 10:28pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/4 "2021-11-09T22:28:24Z")

</div>

> [@michael](#):
>
> increase the length of the output of the error with `log_errors_max_len`

So, I tried this with non success. No value I entered into sites.ini ended up making a difference. I am still getting the same length regardless of what value I enter. I tried like 4-5 different values. And yes, I did restart docker and DevKinsta after each change to the .ini file.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [November 10, 2021, 2:24pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/5 "2021-11-10T14:24:32Z")

</div>

@robruiz Good news! We just released DevKinsta 2.3.0. Could you try updating and let me know if that helps? Here’s more information on that release: [DevKinsta Releases (Minor) - #7 by michael](https://community.kinsta.com/t/devkinsta-releases-minor/371/7)

---

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 10, 2021, 3:46pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/6 "2021-11-10T15:46:14Z")

</div>

I updated. I see the new php.ini area. That’s interesting. I might give that a try here soon as I am now not getting error logs at all. Not sure if that is an issue on my end or what.

Since errors logs seem to be lacking on DevKinsta, I am now exploring setting up xdebug, however, it seems that there isn’t much help from Kinsta on that end either.

So far, the developer experience on DevKinsta is not ideal. I might have to switch back to Local here soon because I can’t seem to get any level of deep troubleshooting or debugging done while coding.

---

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 10, 2021, 4:10pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/7 "2021-11-10T16:10:47Z")

</div>

So…still no error log stuff.

I tried to create a whole new local env in DevKinsta and am now trying to get stuff to write to the log…nothing.

I’m pretty sure the new version squashed the error log functionality somehow. Do I now need to do something else besides making sure wp\_debug is enabled in DevKinsta to get the error log working?

@michael - any help here would be much appreciated.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [November 10, 2021, 9:36pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/8 "2021-11-10T21:36:41Z")

</div>

@robruiz We’ll give this a test further and update you. DevKinsta does support the default debug and it’s a main feature of DevKinsta should there should be no issues at all here with that. I’ll let you know!

---

<div class="post-metadata">

### Author: ![robruiz](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@robruiz](https://community.kinsta.com/u/robruiz)
#### Post date: [November 10, 2021, 11:09pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/9 "2021-11-10T23:09:24Z")

</div>

You might want to test through the write\_log debug experience with that new version on your end and confirm nothing got stepped on.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [November 11, 2021, 2:35pm UTC](https://community.kinsta.com/t/error-log-settings-for-message-length/1103/10 "2021-11-11T14:35:18Z")

</div>

Hi @robruiz . After enabling the following option on DevKinsta

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/9b7062261d3e03257b64724e5cb0f39de36a0460.png)

It inserted the following lines on my `wp-config.php`:

```auto
define( 'WP_DEBUG_LOG', 'true' );
define( 'WP_DEBUG_DISPLAY', 'true' );
define( 'WP_DEBUG', 'true' );

```

I broke the site on purpose and was able to log error entries inside `C:\Users\myuser\OneDrive\Documents\DevKinsta\logs\anotherkinstasite_error.log` with various errors.

What OS are you on? I tested on Windows. Do you have anything in `wp-config.php` or elsewhere that is writing to the logs elsewhere other than the default location?
