cloudapi: propagate operation/external id
Signed-off-by: Lukas Zapletal <lzap+git@redhat.com>
This commit is contained in:
parent
f3c0daebbf
commit
5ce8f65a58
8 changed files with 169 additions and 41 deletions
|
|
@ -50,6 +50,8 @@ func main() {
|
|||
logLevel, err := logrus.ParseLevel(config.LogLevel)
|
||||
|
||||
logrus.SetReportCaller(true)
|
||||
// Add context hook to log operation_id and external_id
|
||||
logrus.AddHook(&common.ContextHook{})
|
||||
|
||||
if err == nil {
|
||||
logrus.SetLevel(logLevel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue