You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2016/12/15 20:19:26 UTC

qpid-dispatch git commit: DISPATCH-594 - Logs are appended to the log file if it already exists

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master ce5584d0b -> 85372a6ae


DISPATCH-594 - Logs are appended to the log file if it already exists


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/85372a6a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/85372a6a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/85372a6a

Branch: refs/heads/master
Commit: 85372a6aee200e7db59dba53301fa8cfca045008
Parents: ce5584d
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Thu Dec 15 15:18:54 2016 -0500
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Thu Dec 15 15:18:54 2016 -0500

----------------------------------------------------------------------
 src/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/85372a6a/src/log.c
----------------------------------------------------------------------
diff --git a/src/log.c b/src/log.c
index f0b4677..7cdb483 100644
--- a/src/log.c
+++ b/src/log.c
@@ -130,7 +130,7 @@ static log_sink_t* log_sink_lh(const char* name) {
             syslog = true;
         }
         else {
-            file = fopen(name, "w");
+            file = fopen(name, "a");
         }
 
         //If file is not there, log an error and return 0.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org