From 8280add935fae571e51c93a23453e92dd3cb6c53 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Wed, 14 Apr 2010 13:43:58 +0200 Subject: [PATCH] Moved the event logging just before the action. --- src/IDF/Plugin/SyncGit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IDF/Plugin/SyncGit.php b/src/IDF/Plugin/SyncGit.php index 01707f0..41134f4 100644 --- a/src/IDF/Plugin/SyncGit.php +++ b/src/IDF/Plugin/SyncGit.php @@ -42,13 +42,14 @@ class IDF_Plugin_SyncGit */ static public function entry($signal, &$params) { - Pluf_Log::event('IDF_Plugin_SyncGit called.'); // First check for the single mandatory config variable. if (!Pluf::f('idf_plugin_syncgit_sync_file', false)) { Pluf_Log::debug('IDF_Plugin_SyncGit plugin not configured.'); return; } if ($signal != 'gitpostupdate.php::run') { + Pluf_Log::event('IDF_Plugin_SyncGit', 'create', + Pluf::f('idf_plugin_syncgit_sync_file')); @touch(Pluf::f('idf_plugin_syncgit_sync_file')); @chmod(Pluf::f('idf_plugin_syncgit_sync_file'), 0777); } else {