Skip to content

Commit 0148e1d

Browse files
author
Jon Ludlam
committed
Use syslog from xcp-idl
Signed-off-by: Jon Ludlam <[email protected]>
1 parent c53383c commit 0148e1d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

lib/network_config.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ open Network_interface
1717
open Fun
1818
open Stringext
1919

20-
module D = Debug.Debugger(struct let name = "network_config" end)
20+
module D = Debug.Make(struct let name = "network_config" end)
2121
open D
2222

2323
exception Read_error

lib/network_utils.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ open Stringext
1717
open Fun
1818
open Network_interface
1919

20-
module D = Debug.Debugger(struct let name = "network_utils" end)
20+
module D = Debug.Make(struct let name = "network_utils" end)
2121
open D
2222

2323
let iproute2 = "/sbin/ip"

networkd/network_monitor_thread.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open Stringext
1919
open Listext
2020
open Threadext
2121

22-
module D = Debug.Debugger(struct let name = "network_monitor_thread" end)
22+
module D = Debug.Make(struct let name = "network_monitor_thread" end)
2323
open D
2424

2525
(** Table for bonds status. *)

networkd/network_server.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ open Fun
1919
open Stringext
2020
open Listext
2121

22-
module D = Debug.Debugger(struct let name = "network_server" end)
22+
module D = Debug.Make(struct let name = "network_server" end)
2323
open D
2424

2525
type context = unit

networkd/networkd.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ open Pervasiveext
1616
open Fun
1717
open Network_utils
1818

19-
module D = Debug.Debugger(struct let name = "networkd" end)
19+
module D = Debug.Make(struct let name = "networkd" end)
2020
open D
2121

2222
module Server = Network_interface.Server(Network_server)
@@ -65,7 +65,7 @@ let _ =
6565

6666
Xcp_service.maybe_daemonize ();
6767

68-
Debug.set_facility Syslog_transitional.Local5;
68+
Debug.set_facility Syslog.Local5;
6969

7070
(* We should make the following configurable *)
7171
Debug.disable "http";

xcp-networkd.obuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ obuild-ver: 1
66
library network-libs
77
src-dir: lib
88
modules: network_config, network_utils
9-
build-deps: forkexec, stdext, threads, rpclib, log, stdext, xcp-inventory, xcp.network
9+
build-deps: forkexec, stdext, threads, rpclib, stdext, xcp-inventory, xcp.network
1010
cdir: lib
1111
c-sources: link_stubs.c
1212

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

1919
executable networkd_db

0 commit comments

Comments
 (0)