Skip to content

Commit 40d6b1a

Browse files
authored
logger: fix cannot redirect to file in background mode (#16)
1 parent 79f2726 commit 40d6b1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Yoda Monitor
22
[![License](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat)](LICENSE)
3-
[![Build Status](https://travis-ci.org/yodaos-project/edge-monitor.svg?branch=master)](https://travis-ci.org/yodaos-project/edge-monitor)
3+
[![Build Status](https://travis-ci.com/yodaos-project/edge-monitor.svg?branch=master)](https://travis-ci.org/yodaos-project/edge-monitor)
44

55
Collect and upload system data in real time. Currently supports the following features:
66

src/env.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ static void setupLogger() {
5050
int32_t Env::setup() {
5151
close(0);
5252
open("/dev/null", O_RDWR);
53-
setupLogger();
5453
runInBackground();
54+
setupLogger();
5555
return 0;
5656
}
5757

0 commit comments

Comments
 (0)