summaryrefslogtreecommitdiffstats
path: root/src/fidentify.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-20 14:04:26 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-20 14:04:26 +0100
commite6392fbec9a3e7f16aaa9911eea4ae71e69a3283 (patch)
tree30739c979b69e93a65ef968b325d14ba0afc7dd3 /src/fidentify.c
parent9c85398217c0e9bd52afbe0d799394c05b13a6bf (diff)
fidentify: log debug information
Diffstat (limited to 'src/fidentify.c')
-rw-r--r--src/fidentify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fidentify.c b/src/fidentify.c
index 60e2ed6..15c4582 100644
--- a/src/fidentify.c
+++ b/src/fidentify.c
@@ -152,6 +152,7 @@ int main(int argc, char **argv)
{
FILE *log_handle=NULL;
file_stat_t *file_stats;
+ log_set_levels(LOG_LEVEL_DEBUG|LOG_LEVEL_TRACE|LOG_LEVEL_QUIET|LOG_LEVEL_INFO|LOG_LEVEL_VERBOSE|LOG_LEVEL_PROGRESS|LOG_LEVEL_WARNING|LOG_LEVEL_ERROR|LOG_LEVEL_PERROR|LOG_LEVEL_CRITICAL);
log_handle=log_open("fidentify.log", TD_LOG_CREATE);
if(log_handle!=NULL)
{
@@ -168,7 +169,7 @@ int main(int argc, char **argv)
log_info("\n\n");
log_flush();
}
- log_info("fidentify%s, Data Recovery Utility, %s\nChristophe GRENIER <grenier@cgsecurity.org>\nhttp://www.cgsecurity.org\n", VERSION, TESTDISKDATE);
+ log_info("fidentify %s, Data Recovery Utility, %s\nChristophe GRENIER <grenier@cgsecurity.org>\nhttp://www.cgsecurity.org\n", VERSION, TESTDISKDATE);
reset_list_file_enable(list_file_enable);
file_stats=init_file_stats(list_file_enable);
if(argc>1)