Skip to content

Commit

Permalink
Increase log level for debugging ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rhafer committed Apr 29, 2022
1 parent 3c3955a commit 23f8a42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
if not testing_parallel_deploy:
user = "0:0"
environment = {
"STORAGE_METADATA_LOG_LEVEL": "debug",
"SETTINGS_LOG_LEVEL": "debug",
"OCIS_URL": "https://ocis-server:9200",
"GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
"STORAGE_HOME_DRIVER": "%s" % (storage),
Expand Down
4 changes: 4 additions & 0 deletions extensions/settings/pkg/store/metadata/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (s *Store) initMetadataClient(mdc MetadataClient) error {
} {
err = mdc.MakeDirIfNotExist(ctx, p)
if err != nil {
s.Logger.Error().Err(err).Str("folder", p).Msg("error creating base directory")
return err
}
}
Expand All @@ -119,6 +120,7 @@ func (s *Store) initMetadataClient(mdc MetadataClient) error {
}
err = mdc.SimpleUpload(ctx, bundlePath(p.Id), b)
if err != nil {
s.Logger.Error().Err(err).Str("bundlPath", bundlePath(p.Id)).Msg("error uploading default roles bundle")
return err
}
}
Expand All @@ -128,6 +130,7 @@ func (s *Store) initMetadataClient(mdc MetadataClient) error {
roleID := p.RoleId
err = mdc.MakeDirIfNotExist(ctx, accountPath(accountUUID))
if err != nil {
s.Logger.Error().Err(err).Str("accountPath", accountPath(accountUUID)).Msg("error creating directory for role assignment")
return err
}

Expand All @@ -142,6 +145,7 @@ func (s *Store) initMetadataClient(mdc MetadataClient) error {
}
err = mdc.SimpleUpload(ctx, assignmentPath(accountUUID, ass.Id), b)
if err != nil {
s.Logger.Error().Err(err).Str("assignmentPath", assignmentPath(accountUUID, ass.Id)).Msg("error creating directory for role assignment")
return err
}
}
Expand Down

0 comments on commit 23f8a42

Please sign in to comment.