projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fc10e6
)
mkdir
author
Christian Grothoff
<christian@grothoff.org>
Fri, 12 Mar 2010 09:15:35 +0000
(09:15 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 12 Mar 2010 09:15:35 +0000
(09:15 +0000)
src/util/common_logging.c
patch
|
blob
|
history
diff --git
a/src/util/common_logging.c
b/src/util/common_logging.c
index 8769e8e0c79968c03a56724f8644a9af5dcae143..6936558845e7aabb39a8a2056586f00a7ad05d6b 100644
(file)
--- a/
src/util/common_logging.c
+++ b/
src/util/common_logging.c
@@
-171,6
+171,11
@@
GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile)
min_level = get_type (loglevel);
if (logfile == NULL)
return GNUNET_OK;
+ if (GNUNET_OK !=
+ GNUNET_DISK_directory_create_for_file (logfile))
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("Failed to create or access directory for log file `%s'"),
+ logfile);
altlog = FOPEN (logfile, "a");
if (altlog == NULL)
{