1. An information processing apparatus which executes a first module, a second module, and a third module for mediating a call from the first module to a function in the second module and obtaining a log of processing in the second module, the third module comprising: a detector which detects a call from the first module to a function associated with initialization processing in the second module; a determination unit which determines operation condition of the initialization processing, when the call is detected; an execution unit which executes the function associated with the initialization processing in the determined operation condition; and a notifying unit which notifies the first module of an execution result of the function associated with the initialization processing.