]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
rrd_daemon: Log strerror(errno) when rrd_mkdir_p() fails 732/head
authorJean-Vincent Ficet <jean-vincent.ficet@bull.net>
Tue, 10 Feb 2015 15:39:18 +0000 (16:39 +0100)
committerMarek Schimara <Marek.Schimara@bull.net>
Wed, 24 Aug 2016 08:03:29 +0000 (10:03 +0200)
commita79526e518a9b85fbbd74fa0694055767651ed53
treec378c3d5dfee0dc7a3449816f49f9932f58c608b
parent0481ad4472f4d7c64e3eae2272243bf1db5892d7
rrd_daemon: Log strerror(errno) when rrd_mkdir_p() fails

Log strerror(errno) when rrd_mkdir_p() fails in order to know what went wrong
from a client application perspective.

In this particular case, rrd_mkdir_p failed due to the lack of inodes.
Sending a message with 'No Space left on device' allowed the application
to limit the logs in the code in charge of handling the
RRDTOOL_FILESYSTEM_FULL error, rather than flooding the logs with all
the failed queries.
src/rrd_daemon.c