Whamcloud - gitweb
EX-4375 lipe: set lpurge log prefix
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 17 Dec 2021 13:49:43 +0000 (07:49 -0600)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 18 Jan 2022 14:58:05 +0000 (14:58 +0000)
In lpurge, set lx_log_prefix to the ostname.

Test-Parameters: trivial testlist=hot-pools
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I602d0b2d10717b5c7993cea815b12cf42ec31ade
Reviewed-on: https://review.whamcloud.com/45881
Reviewed-on: https://review.whamcloud.com/46130
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lipe/src/lpurge.c

index 169ac4b..7904c5a 100644 (file)
@@ -1982,6 +1982,7 @@ int main(int argc, char **argv)
        /* Messages will be prefixed by program_invocation_short_name
         * followed by the OST name ("lpurge lustre-OST0000"). */
        llapi_set_command_name(ostname);
+       lx_log_prefix = ostname;
 
        LX_INFO("version %s-%s, revision %s\n",
                PACKAGE_VERSION, LIPE_RELEASE, LIPE_REVISION);