Skip to content

Commit

Permalink
logger: fix cannot redirect to file in background mode (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
qile222 authored Jun 25, 2019
1 parent 79f2726 commit 40d6b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Yoda Monitor
[![License](https://img.shields.io/badge/licence-Apache%202.0-brightgreen.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.org/yodaos-project/edge-monitor.svg?branch=master)](https://travis-ci.org/yodaos-project/edge-monitor)
[![Build Status](https://travis-ci.com/yodaos-project/edge-monitor.svg?branch=master)](https://travis-ci.org/yodaos-project/edge-monitor)

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

Expand Down
2 changes: 1 addition & 1 deletion src/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ static void setupLogger() {
int32_t Env::setup() {
close(0);
open("/dev/null", O_RDWR);
setupLogger();
runInBackground();
setupLogger();
return 0;
}

Expand Down

0 comments on commit 40d6b1a

Please sign in to comment.