[pacman-dev] [PATCH] 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> --- lib/libalpm/hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c index ed79fdd..e49000e 100644 --- a/lib/libalpm/hook.c +++ b/lib/libalpm/hook.c @@ -736,7 +736,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; -- 2.7.0
On 31/01/16 00:16, Olivier Brunel wrote:
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> ---
OK.
participants (2)
-
Allan McRae
-
Olivier Brunel