Skip to content

Commit

Permalink
Use syslog from xcp-idl
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
  • Loading branch information
Jon Ludlam committed Sep 24, 2013
1 parent c53383c commit 0148e1d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/network_config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open Network_interface
open Fun
open Stringext

module D = Debug.Debugger(struct let name = "network_config" end)
module D = Debug.Make(struct let name = "network_config" end)
open D

exception Read_error
Expand Down
2 changes: 1 addition & 1 deletion lib/network_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open Stringext
open Fun
open Network_interface

module D = Debug.Debugger(struct let name = "network_utils" end)
module D = Debug.Make(struct let name = "network_utils" end)
open D

let iproute2 = "/sbin/ip"
Expand Down
2 changes: 1 addition & 1 deletion networkd/network_monitor_thread.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ open Stringext
open Listext
open Threadext

module D = Debug.Debugger(struct let name = "network_monitor_thread" end)
module D = Debug.Make(struct let name = "network_monitor_thread" end)
open D

(** Table for bonds status. *)
Expand Down
2 changes: 1 addition & 1 deletion networkd/network_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ open Fun
open Stringext
open Listext

module D = Debug.Debugger(struct let name = "network_server" end)
module D = Debug.Make(struct let name = "network_server" end)
open D

type context = unit
Expand Down
4 changes: 2 additions & 2 deletions networkd/networkd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open Pervasiveext
open Fun
open Network_utils

module D = Debug.Debugger(struct let name = "networkd" end)
module D = Debug.Make(struct let name = "networkd" end)
open D

module Server = Network_interface.Server(Network_server)
Expand Down Expand Up @@ -65,7 +65,7 @@ let _ =

Xcp_service.maybe_daemonize ();

Debug.set_facility Syslog_transitional.Local5;
Debug.set_facility Syslog.Local5;

(* We should make the following configurable *)
Debug.disable "http";
Expand Down
4 changes: 2 additions & 2 deletions xcp-networkd.obuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ obuild-ver: 1
library network-libs
src-dir: lib
modules: network_config, network_utils
build-deps: forkexec, stdext, threads, rpclib, log, stdext, xcp-inventory, xcp.network
build-deps: forkexec, stdext, threads, rpclib, stdext, xcp-inventory, xcp.network
cdir: lib
c-sources: link_stubs.c

executable xcp-networkd
main: networkd.ml
src-dir: networkd
build-deps: threads, rpclib, rpclib.unix, forkexec, stdext, log, http-svr, xcp-inventory, network-libs, xen-api-client, xcp, xcp.network
build-deps: threads, rpclib, rpclib.unix, forkexec, stdext, http-svr, xcp-inventory, network-libs, xen-api-client, xcp, xcp.network
pp: camlp4o

executable networkd_db
Expand Down

0 comments on commit 0148e1d

Please sign in to comment.