Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Eliminates plugin log file #1153

Merged
merged 4 commits into from
Aug 30, 2016
Merged

Eliminates plugin log file #1153

merged 4 commits into from
Aug 30, 2016

Conversation

jcooklin
Copy link
Collaborator

Fixes #1102

A plugins stdout and stderr are already captured by snapd and logged
to snapd's log file. This commit removes the log file created by the
client lib that captures much of the boiler plate interaction between
control and the plugin including including logging heart beats, which
RPC methods were invoked, etc.

Summary of changes:

  • Removes PluginLogPath from plugin args
  • Adds LogLevel to args sent to a plugin
  • Replaces standard log with logrus

Testing done:

  • Unit
  • Manual
    • latest snapd + latest plugins
    • latest snapd + plugins from v0.15
    • v0.15 snapd + latest plugins

@intelsdi-x/snap-maintainers

// simpleFormatter is a logrus formatter that includes only the message.
type simpleFormatter struct{}

func (_ *simpleFormatter) Format(entry *log.Entry) ([]byte, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need the _.

@candysmurf
Copy link
Contributor

Do you mind to resolve the branch conflicts?

A plugins stdout and stderr are already captured by snapd and logged
to snapd's log file.  This commit removes the log file created by the
client lib that captures much of the boiler plate interaction between
control and the plugin including including logging heart beats, which
RPC methods were invoked, etc.

- Removes PluginLogPath from args sent to a plugin
- Adds LogLevel to args sent to a plugin
- Replaces log with logrus in legacy client lib
- adds vendor and glide.lock
@candysmurf
Copy link
Contributor

LGTM

@candysmurf candysmurf merged commit 9dcbeb0 into intelsdi-x:master Aug 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants