summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2016-01-30 15:16:28 +0100
committerAllan McRae <allan@archlinux.org>2016-02-20 05:01:53 +0100
commita1a8d067e0264ade802229d418acfb019528f97c (patch)
tree308b89eb7278326ad42825abfca5b36b017ac0c1
parent7cf5e1aebf8aaeefa743d057d72833541722ca24 (diff)
downloadpacman-a1a8d067e0264ade802229d418acfb019528f97c.tar.gz
pacman-a1a8d067e0264ade802229d418acfb019528f97c.tar.xz
Log to file when running hooks
Useful if there's some output (to know where it comes from), or in case of failure. Signed-off-by: Olivier Brunel <jjk@jjacky.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--lib/libalpm/hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index 00d999b1..81c347e1 100644
--- a/lib/libalpm/hook.c
+++ b/lib/libalpm/hook.c
@@ -737,7 +737,7 @@ int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when)
for(i = hooks_triggered; i; i = i->next, hook_event.position++) {
struct _alpm_hook_t *hook = i->data;
- _alpm_log(handle, ALPM_LOG_DEBUG, "running hook %s\n", hook->name);
+ alpm_logaction(handle, ALPM_CALLER_PREFIX, "running '%s'...\n", hook->name);
hook_event.type = ALPM_EVENT_HOOK_RUN_START;
hook_event.name = hook->name;