Revision 507372bb tests/MonTestDist/MonTestDist.c

View differences:

tests/MonTestDist/MonTestDist.c
6 6

  
7 7
#include "ml.h"
8 8
#include "mon.h"
9
#include "grapes_log.h"
10
#include "grapes.h"
9
#include "napa_log.h"
10
#include "napa.h"
11 11
#include "repoclient.h"
12 12

  
13 13
#define SOCKETID_PUBLISH_NAME "SocketId"
......
412 412

  
413 413
	printf("Running conf:\nIP:\t\t%s\nSTUN:\t\t%s\nREPO:\t\t%s\nVERBOSITY:\t%d\nPORT:\t\t%d\nCYCLE:\t\t%ds\nCHANNEL:\t%s\nPAUSE:\t\t%dms\n", bind_ip ? bind_ip:"auto", stun_server, repository, verbosity, port, cycle, channel, avg_pause);
414 414

  
415
	//Init grapes: log facility and libevent
416
	grapesInit(event_base_new());
415
	//Init napa: log facility and libevent
416
	napaInit(event_base_new());
417 417

  
418 418
	// Initialize logging
419
	grapesInitLog(verbosity, NULL, NULL);
419
	napaInitLog(verbosity, NULL, NULL);
420 420

  
421 421
	//Init monitoring layer
422 422
	monInit(eventbase, NULL);

Also available in: Unified diff