summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippo Argiolas <fargiolas@src.gnome.org>2009-02-28 20:50:28 +0000
committerFilippo Argiolas <fargiolas@src.gnome.org>2009-02-28 20:50:28 +0000
commitc10787e3c1ba98896fac105405c8991a0f26128b (patch)
tree5d9f928175cf9b41dd3bd260f03c2810ce4c67d8
parentf103153091e63996a5a8afe21e59d877b40f592a (diff)
downloadcheese-c10787e3c1ba98896fac105405c8991a0f26128b.tar.gz
Print cheese verbose messages even if log dir doesn't exist.
Fixes bug #573573 svn path=/trunk/; revision=1199
-rw-r--r--ChangeLog6
-rw-r--r--src/cheese.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index db643f66..8762a006 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-28 Filippo Argiolas <filippo.argiolas@gmail.com>
+
+ * src/cheese.c:
+ Print cheese verbose messages even if log dir doesn't exist.
+ Fixes bug #573573
+
2009-02-16 daniel g. siegel <dgsiegel@gmail.com>
* configure.ac,
diff --git a/src/cheese.c b/src/cheese.c
index 5bd89e45..c8c5156c 100644
--- a/src/cheese.c
+++ b/src/cheese.c
@@ -48,6 +48,9 @@ cheese_print_handler (char *string)
CheeseFileUtil *fileutil = cheese_fileutil_new ();
+ if (CheeseOptions.verbose)
+ fprintf (stdout, "%s", string);
+
if (fp == NULL)
{
path = cheese_fileutil_get_log_path (fileutil);
@@ -78,9 +81,6 @@ cheese_print_handler (char *string)
if (fp)
fputs (string, fp);
-
- if (CheeseOptions.verbose)
- fprintf (stdout, "%s", string);
}
void