[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 2/2] oxenstored: honour XEN_LOG_DIR defined by configure


  • To: Wei Liu <wei.liu2@xxxxxxxxxx>
  • From: David Scott <dave@xxxxxxxxxx>
  • Date: Fri, 10 Jun 2016 21:26:05 +0100
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 10 Jun 2016 20:26:36 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=recoil.org; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= selector1; b=FoijzSFkRRc+R/G27X37T4ABs37mSxiTdtdBulHmQZX0amEYeyQ u8ReZspeicyEbs3jqwhhbrwzwC3oPOi/A1aGlycY8peF4lV0MWE5EQPzs3IqOwae E5D/C40Dgd20PFV0FQYjttPwnczqwzTbBcrG3Qc242qnPn8aFtmXTtzQ=
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

Rather than

  (String.concat “” [a; b])

it’s simpler to write

  (a ^ b)

With that small change,

Acked-by: David Scott <dave@xxxxxxxxxx>

Cheers,
Dave

> On 10 Jun 2016, at 19:44, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
> 
> CC Dave's correct email address.
> 
> On Fri, Jun 10, 2016 at 03:25:46PM +0100, Wei Liu wrote:
>> We generate a corresponding constant (in lower case) in paths.ml. Use
>> that in source code to get rid of hard-coded path.
>> 
>> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
>> ---
>> Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
>> Cc: David Scot <dave.scot@xxxxxxxxxx>
>> ---
>> tools/ocaml/xenstored/logging.ml | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>> 
>> diff --git a/tools/ocaml/xenstored/logging.ml 
>> b/tools/ocaml/xenstored/logging.ml
>> index 4c90032..d05b2d4 100644
>> --- a/tools/ocaml/xenstored/logging.ml
>> +++ b/tools/ocaml/xenstored/logging.ml
>> @@ -154,7 +154,7 @@ let make_syslog_logger facility =
>>              Syslog.log facility level s in
>>      { stop = nothing; restart = nothing; rotate = nothing; write=write }
>> 
>> -let xenstored_log_destination = ref (File "/var/log/xenstored.log")
>> +let xenstored_log_destination = ref (File (String.concat "" 
>> [Paths.xen_log_dir; "/xenstored.log"]))
>> let xenstored_log_level = ref Warn
>> let xenstored_log_nb_files = ref 10
>> let xenstored_log_nb_lines = ref 13215
>> @@ -262,7 +262,7 @@ let sanitize_data data =
>>      String.escaped data
>> 
>> let activate_access_log = ref true
>> -let access_log_destination = ref (File "/var/log/xenstored-access.log")
>> +let access_log_destination = ref (File (String.concat "" 
>> [Paths.xen_log_dir; "/xenstored-access.log"]))
>> let access_log_nb_files = ref 20
>> let access_log_nb_lines = ref 13215
>> let access_log_nb_chars = ref 180
>> -- 
>> 2.1.4
>> 
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.