Skip to content

Commit

Permalink
Log with DEFAULT_INSTANCE_ID in the absence of instance id
Browse files Browse the repository at this point in the history
This patch adds the DEFAULT_INSTANCE_ID to log messages when no
instance id is specified.

Signed-off-by: Josh Abraham <sinisterpatrician@gmail.com>
  • Loading branch information
jabedude authored and aghecenco committed Dec 13, 2018
1 parent 7a33112 commit 4fb29a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,7 @@
- `PUT` operations on `/network-interfaces` API resources no longer accept
the previously required `state` parameter.
- The jailer starts with `--seccomp-level=2` (was previously 0) by default.
- Log messages use `anonymous-instance` as instance-id if no instance-id is set.

## [0.11.0]

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -34,7 +34,7 @@ const DEFAULT_INSTANCE_ID: &str = "anonymous-instance";

fn main() {
LOGGER
.init(&"", None, None, vec![])
.init(DEFAULT_INSTANCE_ID, None, None, vec![])
.expect("Failed to register logger");

// If the signal handler can't be set, it's OK to panic.
Expand Down

0 comments on commit 4fb29a6

Please sign in to comment.