Commit 28e0b095 by Jozsef Makai

MGM: reduced logging and some SA warnings

parent 10af85d6
......@@ -39,8 +39,6 @@ int
Workflow::Trigger(const std::string& event, std::string workflow,
eos::common::Mapping::VirtualIdentity& vid, const std::string& errorMessage)
{
eos_static_info("event=\"%s\" workflow=\"%s\"", event.c_str(),
workflow.c_str());
errno = 0;
if (workflow == "none" && vid.sudoer) {
......@@ -89,7 +87,6 @@ Workflow::Trigger(const std::string& event, std::string workflow,
std::string key = "sys.workflow." + event + "." + workflow;
if (mAttr && (*mAttr).count(key)) {
eos_static_info("key=%s %d %d", key.c_str(), mAttr, (*mAttr).count(key));
mEvent = event;
mWorkflow = workflow;
mAction = (*mAttr)[key];
......@@ -202,7 +199,6 @@ Workflow::Create(eos::common::Mapping::VirtualIdentity& vid, const std::string&
if (job.IsSync(mEvent)) {
if (WfeEnabled()) {
job.AddAction(mAction, mEvent, t, mWorkflow, "r");
eos_static_info("running synchronous workflow");
return job.DoIt(true);
}
} else {
......
......@@ -122,7 +122,7 @@ XrdSfsGetFileSystem(XrdSfsFileSystem* native_fs,
// Initialize the subsystems
if (!myFS.Init(gMgmOfsEroute)) {
return 0;
return nullptr;
}
// Disable XRootd log rotation
......@@ -131,18 +131,18 @@ XrdSfsGetFileSystem(XrdSfsFileSystem* native_fs,
// By default enable stalling and redirection
gOFS->IsStall = true;
gOFS->IsRedirect = true;
myFS.ConfigFN = (configfn && *configfn ? strdup(configfn) : 0);
myFS.ConfigFN = (configfn && *configfn ? strdup(configfn) : nullptr);
if (myFS.Configure(gMgmOfsEroute)) {
return 0;
return nullptr;
}
// Initialize authorization module ServerAcc
gOFS->CapabilityEngine = (XrdCapability*) XrdAccAuthorizeObject(lp, configfn,
0);
nullptr);
if (!gOFS->CapabilityEngine) {
return 0;
return nullptr;
}
return gOFS;
......@@ -493,7 +493,7 @@ XrdMgmOfs::prepare(XrdSfsPrep& pargs, XrdOucErrInfo& error,
args.Arg1Len = prep_path.length();
args.Arg2 = prep_info.c_str();
args.Arg2Len = prep_info.length();
eos_static_info("prep-info=%s", prep_info.c_str());
auto ret_wfe = XrdMgmOfs::FSctl(SFS_FSCTL_PLUGIN, args,
error, &lClient);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment