How to check the performance of server hooks? Checked execution of client hook. But I do not understand how to check the performance of the server. For example, when a person makes a git push. The post-update should work. I don’t understand what to write in the script to see that the post-update was indeed executed.

    1 answer 1

    The easiest way is to output any message to any log file. It is better, of course, that the message contains the current time and all input parameters of the hook.

    • I tried to do so. But I did not understand where the file is being created. :( - Rina
    • one
      Give it an absolute path to the temporary directory. By default, no path is the current directory of the process. If the script does not change it, then the process that caused the script. - 0andriy