<p>bitcoind 0.5.99-beta was running and my debug.log was 26MB.  After</p>

<pre><code>bitcoind stop
(wait 30 sec. or so for stop)
bitcoind -daemon
</code></pre>

<p>debug.log was 201KB.</p>

<p>Mac OS 10.6.7</p>

CC BY-SA 4.0
2018-05-30T00:48:41.887Z
my debug.log became 4GB. There should be awareness to truncate debug.log even as the software is running not upon restart
Sun
CC BY-SA 3.0
2012-01-24T20:37:10.493Z
2012-01-24T20:37:10.493Z
brec
<p>I went ahead and deleted the file. There don't seem to be any side effects.</p>

CC BY-SA 3.0
2012-01-26T19:48:00.537Z
2012-01-26T19:48:00.537Z
Meni Rosenfeld
<p>According to <a href="https://bitcointalk.org/index.php?topic=8989.msg130821#msg130821">this comment</a>, the debug.log file in the Bitcoin application data directory should be truncated on startup if it is bigger than 10MB. I'm running Bitcoin 0.5.2 on Windows 7 and it does no such thing - the file keeps increasing in size even after restarts, and it is already over 1GB.</p>

<p>Why is it not truncated? Is it safe to stop Bitcoin and truncate the file manually, or delete it completely?</p>

<client>
debug.log file size
Meni Rosenfeld
# debug.log file size

(Asked by: username_0 on 2012-01-24)

According to [this comment](https://bitcointalk.org/index.php?topic=8989.msg130821#msg130821), the debug.log file in the Bitcoin application data directory should be truncated on startup if it is bigger than 10MB. I'm running Bitcoin 0.5.2 on Windows 7 and it does no such thing - the file keeps increasing in size even after restarts, and it is already over 1GB.

Why is it not truncated? Is it safe to stop Bitcoin and truncate the file manually, or delete it completely?

**Tags:** client


---

## 2 answers

### Answer by username_1 on 2012-01-24. Score: 2

bitcoind 0.5.99-beta was running and my debug.log was 26MB. After

```
bitcoind stop
(wait 30 sec. or so for stop)
bitcoind -daemon

```

debug.log was 201KB.

Mac OS 10.6.7

> **Comments:**
> **username_2**: my debug.log became 4GB. There should be awareness to truncate debug.log even as the software is running not upon restart  

---

### Answer by username_0 on 2012-01-26. Score: 2

I went ahead and deleted the file. There don't seem to be any side effects.


---

