* This means that redis job UUIDs now show up in these places
Change-Id: Icea168de7e1590bfe275646bc2ccbb7151f032ae
- if ( is_object( $this->title ) ) {
- $s = "{$this->command} {$this->title->getPrefixedDBkey()}";
- if ( $paramString !== '' ) {
- $s .= " $paramString";
+ $metaString = '';
+ foreach ( $this->metadata as $key => $value ) {
+ if ( is_scalar( $value ) && mb_strlen( $value ) < 1024 ) {
+ $metaString .= ( $metaString ? ",$key=$value" : "$key=$value" );
- } else {
- $s = "{$this->command} $paramString";
+ }
+
+ $s = $this->command;
+ if ( is_object( $this->title ) ) {
+ $s .= " {$this->title->getPrefixedDBkey()}";
+ }
+ if ( $paramString != '' ) {
+ $s .= " $paramString";
+ }
+ if ( $metaString != '' ) {
+ $s .= " ($metaString)";