aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-12-06 09:23:52 +0200
committergramanas <anastasis.gramm2@gmail.com>2018-12-06 09:23:52 +0200
commiteabd52462bfdb409121b351f198d535649d2b3b9 (patch)
tree434ec71438df3c822d34fc0b8d83fa977264c546 /src/init.c
parentbd85acf6a408674bcdcb5116963fe4fea2247280 (diff)
downloadck-eabd52462bfdb409121b351f198d535649d2b3b9.tar.gz
ck-eabd52462bfdb409121b351f198d535649d2b3b9.tar.bz2
ck-eabd52462bfdb409121b351f198d535649d2b3b9.zip
Add log to file, fix list ckconf bug
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index 10f38cb..8123bae 100644
--- a/src/init.c
+++ b/src/init.c
@@ -59,6 +59,14 @@ static int init_create_config_file(UserOpt *opt) {
strcat(tmp, "\n");
fputs(tmp, f);
+ strcpy(tmp, "# Uncomment this line to enable logging in file\n");
+ fputs(tmp, f);
+
+ strcpy(tmp, "# log_dir = ");
+ strcat(tmp, opt->confDir);
+ strcat(tmp, "\n");
+ fputs(tmp, f);
+
fclose(f);
return 0;
}