-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logs refactor - migrating to zap (#281)
* removing logrus by zap Co-authored-by: edznux-dd * Replace all the log.* to l := log.Logger(ctx); l.* * small refactor / moving stuff / cleaner output * Uncommited changes * missing file * refactoring logs * propagating context * refactoring * refactoring * fix unit tests * fix linter * fix linter * fix linter * removing debug container * Replace all the log.* to l := log.Logger(ctx); l.* * small refactor / moving stuff / cleaner output * Uncommited changes * missing file * refactoring logs * propagating context * refactoring * refactoring * fix unit tests * fix linter * fix linter * fix linter * removing debug container --------- Co-authored-by: Edouard Schweisguth <[email protected]>
- Loading branch information
Showing
121 changed files
with
1,830 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
package main | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/DataDog/KubeHound/pkg/cmd" | ||
"github.com/DataDog/KubeHound/pkg/telemetry/log" | ||
"github.com/DataDog/KubeHound/pkg/telemetry/tag" | ||
) | ||
|
||
func main() { | ||
tag.SetupBaseTags() | ||
if err := rootCmd.Execute(); err != nil { | ||
log.I.Fatal(err.Error()) | ||
err := rootCmd.Execute() | ||
err = errors.Join(err, cmd.CloseKubehoundConfig(rootCmd.Context())) | ||
if err != nil { | ||
log.Logger(rootCmd.Context()).Fatal(err.Error()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.